Skip to content
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

Packaged app can't find preload.js #67

Open
dustatron opened this issue Sep 27, 2021 · 1 comment
Open

Packaged app can't find preload.js #67

dustatron opened this issue Sep 27, 2021 · 1 comment

Comments

@dustatron
Copy link

After running yarn package the resulting app returns error renderer_init.js:93 Unable to load <path>/preload.js
However, in development the bridge.ts / preload file loads and can execute node commands without issue.

I poked around with the settings but I have not figured out a solution for this issue.

Link to my code.
https://github.com/dustatron/video-converter

@timohausmann
Copy link

I just had (other) build issues, too. What helped me was to update the electron dependencies – electron is two major versions ahead, and electron-forge has some minor fixes. I tested it with your codebase and got it built and running without errors.

yarn add --dev electron@latest @electron-forge/cli@latest @electron-forge/maker-deb@latest @electron-forge/maker-rpm@latest @electron-forge/maker-squirrel@latest @electron-forge/maker-zip@latest @electron-forge/plugin-webpack@latest

This sadly spawns a new build error in node_modules/fluent-ffmpeg/index.js, that is discussed here. As a quick fix I just deleted the if/else require lib-cov there. Hopefully you can fix it more robustly. Good luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants