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:
- Created a year ago
- Comments:6 (1 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
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
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