ceifa / wasmoon

A real lua 5.4 VM with JS bindings made with webassembly
MIT License
480 stars 31 forks source link

Build error #69

Closed sunzhuo closed 1 year ago

sunzhuo commented 1 year ago

When I try to build the latest wasmoon, it comes the following error messages.

root@5d128954f212:/wasmoon# npm run build

> wasmoon@1.14.1 build
> rollup -c && tsc -d --emitDeclarationOnly --rootDir src --declarationDir dist

[!] SyntaxError: Unexpected identifier
    at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)
    at link (internal/modules/esm/module_job.js:67:21)
ceifa commented 1 year ago

Hey! To build wasmoon you need node 16+. Which version are you using?

sunzhuo commented 1 year ago

I update my nodejs from 14 to 18 and run the build. There appear the following warnings.

root@5d128954f212:/wasmoon# npm run build

> wasmoon@1.14.1 build
> rollup -c && tsc -d --emitDeclarationOnly --rootDir src --declarationDir dist

(node:444) ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

./src/index.ts → dist/index.js...
created dist/index.js in 3.4s
ceifa commented 1 year ago

Just ignore it, it's just a warning about an experimental feature we are using