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.

Node modules, that must be unpacked, are not detected automatically

See original GitHub issue
  • Electron-Builder Version: 22.11.4
  • Node Version: 14.17.6
  • Electron Version: 18.0.3
  • Electron Type (current, beta, nightly):
  • Target: any

electron-builder does not unpack node modules in vector-im/element-desktop. "asarUnpack": "**/*.node", helps as a workaround. As far as I understand they “yarn link” those two node_modules from build directory to the project directory, which makes them symlinks instead of normal directories. Could this be preventing electron-builder from unpacking them?

For your reference: vector-im/element-desktop#337

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ilu33commented, Apr 17, 2022

We are having the same problem: https://github.com/WowUp/WowUp/issues/1125

Several other projects too actually, f.e. https://github.com/jitsi/jitsi-meet-electron/issues/556

1reaction
mmaiettacommented, Apr 13, 2022

That sounds like a similar environment/situation as to what pnpm uses. The upstream package is https://github.com/develar/app-builder that parses the dependency tree to generate the list to copy. Unfortunately, it doesn’t seem to handle symlinks AFAICT

Read more comments on GitHub >

github_iconTop Results From Across the Web

1 - Stack Overflow
This plugin will automatically add all native modules in your node_modules folder to the asar.unpack config option in your packagerConfig.
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
When you get the “cannot find module” error, or “module not found”, it means you've not installed the package you're trying to use....
Read more >
Best practices for creating a modern npm package - Snyk
In this tutorial, we're going to walk step by step through creating an npm package using modern best practices (as of 2022).
Read more >
Node.js v19.3.0 Documentation
Bugs found in legacy features are unlikely to be fixed. Use caution when making use of Experimental features, particularly within modules. Users may...
Read more >
Troubleshooting - Composer
Package not found# · Double-check you don't have typos in your composer. · Be sure to set the right minimum-stability. · Packages not...
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