Closed sebapusch closed 1 year ago
As it's working on the dev server I assume the file truly does exist. What's your Electron Builder config like? Have you made any changes to that?
Also unpacking the asar file in dist/win-unpacked/rescources/app.asar
will show you how the directories look on build. app.asar
should contain the following structure:
- build/
- node_modules/
- renderer/
- static/
- package.json
I assume static/
is missing on your build?
@Deluze thank you. I realized for some reason I removed the static folder from the build configuration (not sure why). Everything is working as expected. Thank you for the great template
I am developing an application using this template and everything works fine on the dev server.
When building the application (for windows), when starting the it I get an error stating that a file under static folder is not found:
Error: ENOENT, static\resources\settings.json not found
The code:
Do you know what I am doing wrong? Thanks in advance