You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 26, 2019. It is now read-only.
Thank you @aluxian for great kit.
Works like a charm in dev.
However, when it is packed to production-ready package and it is installed, the following exception is thrown:
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: content.charCodeAt is not a function
``` at stripBOM (module.js:442:15)
at Object.Module._extensions..js (module.js:452:19)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/var/www/github/aluxian/electron-superkit/dist/opt/superkit/resources/app.asar/node_modules/babel-runtime/node_modules/core-js/library/fn/promise.js:1:80)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
Upgrade to Babel 6 + {"presets": ["stage-0", "es2015"]} works with asar. @aluxian I can submit a PR to fix it, but I'd wait until babel6 is more stable and tested.
Thank you @aluxian for great kit.
Works like a charm in dev.
However, when it is packed to production-ready package and it is installed, the following exception is thrown:
I assume, that it is somehow related to .asar packaging, because if I comment https://github.com/Aluxian/electron-superkit/blob/master/tasks/pack.coffee#L103-L109, the app is compiled and works correctly on Linux and Mac.
Thanks in advance.
The text was updated successfully, but these errors were encountered: