-
-
Notifications
You must be signed in to change notification settings - Fork 214
Open
Description
Describe the bug
we're using a pnpm monorepo and everything works in development fine..
but after building the app we get errors like Can't find module 'X'
I tried applying this fix
If you are using the pnpm package manager, you’ll need to add a file .npmrc with shamefully-hoist=true in project root directory (in order for your dependencies to be bundled correctly). Also, you need to delete node_modules and pnpm-lock.yaml, then reinstall the modules. Of course you can switch to other package manager (e.g. npm, yarn) to avoid this problem.
from the docs with no luck.
Electron-Vite Version
^4.0.1
Electron Version
38.5.0
Vite Version
^7.1.12
Validations
- Follow the Code of Conduct.
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
No labels