-
-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ERR_MODULE_NOT_FOUND] [ESM] Vite doesn't bundle internal dependencies #3644
Comments
@jdms754 what do you think about this issue? |
I added |
I've already tried with |
Yes, looks like it's |
I used the template created by @caoxiemeihao |
Pre-flight checklist
Electron Forge version
7.4.0
Electron version
31.0.1
Operating system
Windows 11
Last known working Electron Forge version
No response
Expected behavior
No error in console
Actual behavior
With ESM, the
electron-squirrel-startup dependency
can't be found if it's in dependencies (it works if I move it into devDependencies):require.resolve
(Node < 20.6.0) example;src/main.ts
file:Console output:
import.meta.resolve
(Node.js >= 20.6.0) example;src/main.ts
file:Console output:
Note: I did a try with other dependencies such as react and solid-js and I got same issue.
Steps to reproduce
Repository: https://github.com/rtritto/template-electron-vite
Steps:
git clone https://github.com/rtritto/template-electron-vite.git
cd template-electron-vite
yarn
yarn start
Additional information
No response
The text was updated successfully, but these errors were encountered: