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
Hello,
after integration in my electron app with yarn add deutschesoft/awml
I don't understand well how to integrate AWML in my frontend.
I've test: <script type=module src="../node_modules/@deutschesoft/awml/src/index.js"></script> in the head of my index.html
with:
You probably want to integrate both https://github.com/DeutscheSoft/aux-widgets for the widgets and AWML to do bindings. How is your electron project structured? Do you use a tool to package the web ui?
I think the problem might be that electron example projects often simply load the main HTML file from disk (using file:// URL). However, es6 modules cannot be loaded from file URLs. Some options which work
use a packaging tool to bundle all javascript into a es5 bundle (you can use rollup for that for example)
start a simple http server (listening on localhost) inside the electron app and load the corresponding URL
I think option 1 would be better here, also because you pull aux-widgets and awml using npm and they might be loaded from node_modules which is not necessarily part of the http server htdocs.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
after integration in my electron app with
yarn add deutschesoft/awml
I don't understand well how to integrate AWML in my frontend.
I've test:
<script type=module src="../node_modules/@deutschesoft/awml/src/index.js"></script>
in the head of my index.htmlwith:
regards
The text was updated successfully, but these errors were encountered: