Unable to bundle scoped packages
See original GitHub issueIt appears scoped packages are unable to be bundled into a nexe binary.
Take for example the popular package @google/maps
Upon requiring it within a project and then compiling with nexe, at run time we get the error:
Error: Cannot find module '@google/maps'
Is there a way to properly bundle scoped packages into a binary?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
bundleDependencies and scoped packages don't work together
We are trying to bundle scoped dependencies inside project in the same scope and still these dependencies are not being bundled. Is this...
Read more >Webpack fails in gatsby build for scoped packages - Support
Perhaps the packages aren't being installed during build because Gatsby sets NODE_ENV to production when using the 'build' command. What this ...
Read more >Webpack externals and user-scoped packages - Stack Overflow
So far I've tried using externals (as above), and tried to use resolve.alias to give it a direct path to the libraries (this...
Read more >npm-link
Symlink a package folder. ... If your linked package is scoped (see scope ) your link command must include that scope, e.g.. npm...
Read more >Manage npm packages - Visual Studio (Windows)
npm expects the node_modules folder and package. · For existing Node. · You can search for scoped packages by prepending the search query...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I would like to reopen it because even with clean binaries I get an error about a scope package not being found. I use version
3.0.0-beta.15
.It looks like after doing a clean I was able to run my binary with a scoped package included successfully.
Thank you for your help, much appreciated!