Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

AssemblyScript compiler crashes #494

Open
Timmmm opened this issue Dec 4, 2021 · 1 comment
Open

AssemblyScript compiler crashes #494

Timmmm opened this issue Dec 4, 2021 · 1 comment

Comments

@Timmmm
Copy link

Timmmm commented Dec 4, 2021

If you just create a new AssemblyScript project and hit Build it gives this output:

[info]: Task build is running...
[error]: Task build failed: exit 1

In the dev tools console you get

Uncaught SyntaxError: Cannot use 'import.meta' outside a module

 Whoops, the AssemblyScript compiler has crashed during compile :-(
▌ 
▌ Here is the stack trace hinting at the problem, perhaps it's useful?
▌ 
▌ TypeError: Cannot read properties of undefined (reading '_BinaryenModuleCreate')
▌     at Function.create (https://cdn.jsdelivr.net/npm/assemblyscript@latest/dist/assemblyscript.js:7:467533)
▌     at new f (https://cdn.jsdelivr.net/npm/assemblyscript@latest/dist/assemblyscript.js:7:201436)
▌     at Object.t.compile (https://cdn.jsdelivr.net/npm/assemblyscript@latest/dist/assemblyscript.js:7:448529)
▌     at https://cdn.jsdelivr.net/npm/assemblyscript@latest/dist/asc.js:7:943822
▌     at D (https://cdn.jsdelivr.net/npm/assemblyscript@latest/dist/asc.js:7:949874)
▌     at e.main (https://cdn.jsdelivr.net/npm/assemblyscript@latest/dist/asc.js:7:943805)
▌     at Object.eval [as main] (eval at d (https://webassembly.studio/dist/main.bundle.js:1:32473), <anonymous>:20:12)
▌     at r.eval [as promiseMaker] (eval at gulp (https://webassembly.studio/dist/main.bundle.js:1:34093), <anonymous>:28:7)
▌     at o.makePromise (https://webassembly.studio/dist/main.bundle.js:1:31658)
▌     at s.runInstance (https://webassembly.studio/dist/main.bundle.js:1:31954)
▌ 
▌ If it refers to the dist files, try to 'npm install source-map-support' and
▌ run again, which should then show the actual code location in the sources.
▌ 
▌ If you see where the error is, feel free to send us a pull request. If not,
▌ please let us know: https://github.com/AssemblyScript/assemblyscript/issues
▌ 
▌ Thank you
@MaxGraey
Copy link
Collaborator

MaxGraey commented Dec 5, 2021

It will be update and fix soon. Meanwhile you can use the playground on the official website

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants