question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to bundle scoped packages

See original GitHub issue

It 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Nautigsamcommented, Mar 27, 2019

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.

0reactions
chrstewcommented, Oct 11, 2018

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found