I used the Aurelia CLI to create a default Hello World app that was confirmed running using Aurelia.
Aurelia generated a index.html in the root directory as such:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Aurelia</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body aurelia-app="main">
<script src="scripts/vendor-bundle.js" data-main="aurelia-bootstrapper"></script>
</body>
</html>
From there I simply created a main.js based off of the Electron QuickStart main.js and installed Electron using npm install --save-dev
. I set main.js to being the driver of the project and launched Electron.
The app index was opened, however, Electron was just blank. What are the proper steps in getting Aurelia working with Electron?
I've created a few basic JavaScript projects using Electron, but I can't seem to get other web apps to run. Same goes with Angular.
Node has been screaming about :
(node:5372) Warning: a promise was rejected with a non-error: [object String]
process.on @ internal/process/warning.js:21
and an issue with PLATFORM.Loader:
Unhandled rejection No PLATFORM.Loader is defined and there is neither a System API (ES6) or a Require API (AMD) globally available to load your app.
printWarning @ vendor-bundle.js:1386
Could you try updating your html-webpack-plugin
to the most recent version? I think this is a webpack config issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With