mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Node Module is not working after packaging the application #682
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @leoubaid on GitHub (Jul 5, 2021).
Originally assigned to: @GregorBiswanger on GitHub.
Hi, I install node module with NPM and its working fine in development environment, but getting " Cannot find module" error in application after packaging it.
@melvin78 commented on GitHub (Jul 24, 2022):
Found any fix getting same issues?
@GregorBiswanger commented on GitHub (Mar 28, 2023):
🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉
With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!
@Yuvix25 commented on GitHub (Jan 11, 2024):
Same issue here, 23.6.1.
Is there any known fix for this? For some reason it only happens with a specific module:
@microsoft/signalr, other modules work fine (for example:fs,source-map-js).Edit:
Solved by adding the module to the
allowlistofnodeExternalsin my webpack.config.js file. No idea why I only had to do it for this specific module though. I also had to add these lines: