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

not able to run the api #356

Open
ghost opened this issue Apr 23, 2018 · 6 comments
Open

not able to run the api #356

ghost opened this issue Apr 23, 2018 · 6 comments

Comments

@ghost
Copy link

ghost commented Apr 23, 2018

TypeError: _.chain(...).keyBy is not a function
at Object.getPathItem (E:\webauctionsplus fix\WebAuction Api v2\api\hooks\swagger\lib\xfmr.js:160:8)
at _.mapValues.pathGroup (E:\webauctionsplus fix\WebAuction Api v2\api\hooks\swagger\lib\xfmr.js:126:26)
at E:\webauctionsplus fix\WebAuction Api v2\node_modules\lodash\index.js:3395:24
at E:\webauctionsplus fix\WebAuction Api v2\node_modules\lodash\index.js:3073:15
at baseForOwn (E:\webauctionsplus fix\WebAuction Api v2\node_modules\lodash\index.js:2046:14)
at Function.mapValues (E:\webauctionsplus fix\WebAuction Api v2\node_modules\lodash\index.js:3394:9)
at Object.getPaths (E:\webauctionsplus fix\WebAuction Api v2\api\hooks\swagger\lib\xfmr.js:125:14)
at Object.getSwagger (E:\webauctionsplus fix\WebAuction Api v2\api\hooks\swagger\lib\xfmr.js:32:26)
at sails.after (E:\webauctionsplus fix\WebAuction Api v2\api\hooks\swagger\index.js:31:25)
at E:\webauctionsplus fix\WebAuction Api v2\node_modules\sails\lib\app\private\after.js:91:14
at E:\webauctionsplus fix\WebAuction Api v2\node_modules\async\lib\async.js:721:13
at E:\webauctionsplus fix\WebAuction Api v2\node_modules\async\lib\async.js:52:16
at done (E:\webauctionsplus fix\WebAuction Api v2\node_modules\async\lib\async.js:246:17)
at E:\webauctionsplus fix\WebAuction Api v2\node_modules\async\lib\async.js:44:16
at Sails. (E:\webauctionsplus fix\WebAuction Api v2\node_modules\async\lib\async.js:718:17)
at Sails. (E:\webauctionsplus fix\WebAuction Api v2\node_modules\async\lib\async.js:167:37)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:106:13)
at Sails.emit (events.js:208:7)
at Sails.emitter.emit (E:\webauctionsplus fix\WebAuction Api v2\node_modules\sails\lib\app\private\after.js:50:11)
at sailsReady (E:\webauctionsplus fix\WebAuction Api v2\node_modules\sails\lib\app\lift.js:53:11)
at E:\webauctionsplus fix\WebAuction Api v2\node_modules\async\lib\async.js:721:13
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2018-04-23T14_13_12_867Z-debug.log

@ghaiklor
Copy link
Owner

I believe this is related to lodash package. The generator doesn't pin dependencies versions, so when it installs packages, lodash is installing with breaking version.

@ghost
Copy link
Author

ghost commented Apr 24, 2018

can you send me a working package json / a fix for that

@ghaiklor
Copy link
Owner

@Larse343 You can install needed lodash version yourself via npm install. I can't send you the package.json with all the working dependencies.

@moda20
Copy link

moda20 commented May 29, 2018

So what is the necessary version of loadash ?

@binnyg
Copy link

binnyg commented Jul 10, 2018

@ghost, @moda20 Did you figure out the exact lodash version?

@moda20
Copy link

moda20 commented Jul 10, 2018

I just installed lodash latest via npm, it worked

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

3 participants