When I try to open html file wile running local server in browser, it works, but Qt complains about line in js where "await" is used. Below is a link to example that I'm trying to run.
https://github.com/tangl-services/tangl-dev/tree/main/tangl-demo-basic
I'm guessing that problem is using 'await' at top level of js file. But I import it with type attribute set to module:
<script type="module" src="http://localhost:8080/index.js"></script>
And that's how Qt output looks:
js: Uncaught SyntaxError: Unexpected reserved word
[13120:13124:1219/155759.050:INFO:CONSOLE(17)] "Uncaught SyntaxError: Unexpected reserved word", source: http://localhost:8080/index.js (17)
If await isn't available, is there an alternative solution?