Trying to build en electron-forge (electron-compile) project with builder on Windows. Build without error but the .exe fails to open with this error:
SyntaxError: unexpected token import
I prepared a reproduction repo here: https://github.com/getstation/forge-builder-example The screenshot is coming from this example.
# on windows
git clone https://github.com/getstation/forge-builder-example
npm install .
npm run pack
# open the .exe in /dist
Looking at the difference in the app.asar
(after extraction) between Mac and Windows, it looks like the .cache
on Windows is not populated correctly:
Whereas on mac (where I see no error):
@develar have you had a chance to investigate this one?
If not, how can I help you? Do you have a hint where I should start looking?
19.6.3
Most helpful comment
19.6.3