Uncaught SyntaxError: Invalid or unexpected token
error logged to console
#81
Labels
bug
Something isn't working
When using electron-forge + Vite + asarmor I can see the following error logged to the devtools console:
The app still works fine though, this is a visual annoyance at best and a minor performance degradation at worst.
This happens because the browser still tries to load any encrypted assets defined in the output
.vite/rendere/main_window/index.html
:Because this file is loaded here, right before decrypting the render process:
asarmor/example/electron-forge/src/main.ts
Line 26 in 02152a2
Removing the render script from the root
index.html
:... doesn't resolve the issue because then Vite no longer picks it up for processing and we end up with a different error.
Thus, we should figure out a way to tell Vite to include these source files but not output them to
.vite/rendere/main_window/index.html
.The text was updated successfully, but these errors were encountered: