7 ms·
Try adding the `--module` flag [1]. JS now has two different grammars, script and module, and the `import` keyword is only allowed in module code. [1] https://
by btmills 7y ago
Try adding the `--module` flag [1]. JS now has two different grammars, script and module, and the `import` keyword is only allowed in module code.
[1] https://bellard.org/quickjs/quickjs.html#qjs-interpreter https://bellard.org/quickjs/quickjs.html#qjs-interpreter
- mstade 7y agoAh yes of course – thanks, works as advertised now! :o) Really cool stuff!