quickjs-emscripten icon indicating copy to clipboard operation
quickjs-emscripten copied to clipboard

Getting javascript modules error on latest release

Open mehmetron opened this issue 1 year ago • 1 comments
trafficstars

First off, thanks for making this library publicly available! It's awesome!

The full error is:

Uncaught SyntaxError: Cannot use 'import.meta' outside a module at eval () at z (sandbox.275a9407e.js:1:94080) at K.evaluate (sandbox.275a9407e.js:1:106841) at ve. (sandbox.275a9407e.js:1:115700) at Generator.next () at i (sandbox.275a9407e.js:1:112149)

Sandbox where error takes place: https://codesandbox.io/p/sandbox/quickjs-emscription-forked-z48jf6

Sandbox with old version that works: https://codesandbox.io/p/sandbox/quickjs-emscription-pgf0f

Are you guys also getting this error? Didn't seem like it was related to my main javascript code but, instead, related to the wasm runtime

mehmetron avatar Jun 24 '24 01:06 mehmetron