Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: collection.item.map(...).flat is not a function #8

Open
M-Mortaz opened this issue Apr 30, 2022 · 0 comments
Open

TypeError: collection.item.map(...).flat is not a function #8

M-Mortaz opened this issue Apr 30, 2022 · 0 comments

Comments

@M-Mortaz
Copy link

Hi, I'm using example code from the doc but I'm getting the error:

➜  postman_to_swagger node run.js
/home/parsezan/work/postman_to_swagger/node_modules/postman-to-swagger/src/to_swagger_2.0.js:51
    .flat(1)
     ^

TypeError: collection.item.map(...).flat is not a function
    at getPaths (/home/parsezan/work/postman_to_swagger/node_modules/postman-to-swagger/src/to_swagger_2.0.js:51:6)
    at module.exports (/home/parsezan/work/postman_to_swagger/node_modules/postman-to-swagger/src/to_swagger_2.0.js:41:18)
    at module.exports (/home/parsezan/work/postman_to_swagger/node_modules/postman-to-swagger/src/index.js:32:16)
    at Object.<anonymous> (/home/parsezan/work/postman_to_swagger/run.js:5:21)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)

Node: v10.19.0
Npm: 6.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant