eclipse-agail / agile-sdk

JavaScript Agile IoT SDK
Eclipse Public License 2.0
2 stars 4 forks source link

npm install agile-sdk --save doesn't install dependency "lodash" #35

Closed dpap closed 7 years ago

craigmulligan commented 7 years ago

Hey @dpap, lodash is a dev dependency so it won't be included when you install it as a dependency? How are you trying to use the sdk?

dpap commented 7 years ago

Well even if I run export NODE_ENV=production; npm start I still get the error.

module.js:472 throw err; ^

Error: Cannot find module 'lodash/clone' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object. (/home/user/agileIot/quantified-self/node_modules/agile-sdk/dist/index.js:39:14) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object. (/home/user/agileIot/quantified-self/agileSync.js:20:15) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32)

craigmulligan commented 7 years ago

You are right 👍 , we obv didn't pick it up because the other modules installed lodash themselves. :) Will push a fix soon.

craigmulligan commented 7 years ago

Fixed with v1.22.