You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vite: External modules not included in packaging #3917
I agree to follow the code of conduct that this project uses.
I have searched the issue tracker for a bug that matches the one I want to file, without success.
Forge version
7.8.0
Electron version
v35.1.5
Operating system
Windows 11
Last known working Forge version
No response
Expected behavior
Following the Electron Forge documentation, I am configuring external for native node modules. In reality I am trying to use the Auto Unpack Native Modules Plugin but can reproduce the bug the same.
Packages configured as external in the vite config should be copied during packaging into a node_modules folder. Since they are not bundled by Vite normally.
Actual behavior
The packages are instead omitted from the produced package, resulting in errors trying to start Electron.
Steps to reproduce
Create a project from the Vite template: npx create-electron-app@latest my-electron-forge-app --template=vite
Activity
webrtcn commentedon Apr 24, 2025
#3738 same issue