Loading JS file from electron failed #4137
Unanswered
RandomEngy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've got a
www
folder withindex.html
andbundle.js
that was created from webpack. I'm following the capacitor community electron guide and am able to launch the app. However it can't seem to load bundle.js. It's right there beside it in the www folder and index.html has <script src="bundle.js"></script>.But I'm getting an error in the console: Failed to load resource: net::ERR_FILE_NOT_FOUND for bundle.js:1. According to the DOM view it's correctly loading index.html but it's trying to load from capacitor-electron://-/bundle.js and failing. What am I doing wrong?
It runs fine when with webpack dev server.
Beta Was this translation helpful? Give feedback.
All reactions