-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Electron can't find module if this module imported from npm workspaces #5713
Comments
I see your twit... Have you tried PNPM workspace instead of NPM ;)? |
@develar I can't do that. I'm working on a template, so I want to minimize count of non-native tools. |
I think issue is that electron-builder somehow modifies package.json. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Yes |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Yes. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Description
Electron can't find module if this module imported from npm workspaces. I guess the reason is that there is no
package-lock.json
file in the packed application.Repo with reproduction: https://github.com/cawa-93/electron-builder-issue.
Steps to reproduce
npm ci
npm run build
Electron throw Error:
Can not find module "@packages/renderer"
cd /path/to/electron-builder-issue/dist/win-unpacked/resources/app
npm install
The text was updated successfully, but these errors were encountered: