09-21-2020 01:59 - edited 09-23-2020 23:39
09-21-2020 01:59 - edited 09-23-2020 23:39
Hi there! I'm trying to move some of the logic out of my app into an npm package to enable use in other apps. The package is hosted on github and installed with:
$ npm install git://github.com/oswalde-p/fitbit-guhrli-core.git --save-dev
However, the build fails with the following message:
[18:43:58][error][app] settings is imported by node_modules/fitbit-guhrli-core/companion/index.js, but could not be resolved
Is there something else I need to do to `fitbit-guhrli-core` to allow it to be used in other apps?
Thanks 🙂
Answered! Go to the Best Answer.
09-23-2020 23:40
09-23-2020 23:40
Never mind, I fixed it by removing the root `index.js` from my package and directly importing from the `app/` and `companion/` directories.
09-23-2020 23:40
09-23-2020 23:40
Never mind, I fixed it by removing the root `index.js` from my package and directly importing from the `app/` and `companion/` directories.