Electron-builder: Runtime error for a build on window feat. electron-compile (forge)

Created on 17 Jun 2017  路  3Comments  路  Source: electron-userland/electron-builder

  • Version: 19.4.2

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

screenshot 2017-06-17 02 12 41

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
bug

Most helpful comment

19.6.3

All 3 comments

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:
screenshot 2017-06-19 10 24 58

Whereas on mac (where I see no error):
screenshot 2017-06-19 10 28 15

@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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ajeey picture Ajeey  路  3Comments

NPellet picture NPellet  路  3Comments

xingoxu picture xingoxu  路  3Comments

JohnWeisz picture JohnWeisz  路  3Comments

iklemm picture iklemm  路  3Comments