-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Bug: Cannot resolve native dependencies in app/package.json
#933
Comments
Interesting. I'll look into this. Thanks for reporting! |
git clone https://github.com/chentsulin/electron-react-boilerplate.git foo
cd foo
yarn
cd app && yarn add --dev node-yaml && cd ..
# updated ./app/index.js to import 'node-yaml'
yarn build # no errors
yarn dev # Throws
|
Hi don't know if this is related or not, but i added node-yaml as a My first tought was that it wasn't exported as It may be because of it fail to resolve |
See these issues: sindresorhus/electron-store#9 Seems to be related to webpack |
Seeing the same issue with |
It seems worth mentioning that the only package I am seeing this error for (though perhaps there would be more to follow if this was not a show-stopper) is for the only package I am loading in my top level |
Removing |
What happens if you remove it from your |
I haven't tried it in this build, but previous experience tells me it will not build without it being in the top level |
Builds, but yields an identical error. |
I found that f36e9d2 is the cause of this. Will investigate further today |
I fixed this in the |
Will do as soon as I can! Thanks for your hard work as always @amilajack |
I try it in a few seconds. |
@anthonyraymond my bad. I accidentally merged dev-master with master and that overrode the reverts that I made to dev-master. It should work this time |
app/package.json
Just tested it in dev-master, works great |
Everything seems to work fine :) |
🎉 🎉 🎉 |
@amilajack after got error
|
@rahmatkruniawan Native deps work on master now. made this repo as an example just for you. It demos using sqlite3 with electron-react-boilerlate. Enjoy! |
Hi,
Since last release (0.11.0), i can't import modules declared in
app/package.json
. I changed nothing, and it was working on this commitIt results in the following error
In this case it's electron-config, but i tryed with differents modules. electron-config is installed with yarn.
app/package.json
How to reproduce
app/package.josn
app/index.js
yarn install
npm run dev
The text was updated successfully, but these errors were encountered: