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

Wasm not defined / Fails to compile #453

Open
K4rakara opened this issue Mar 11, 2020 · 0 comments
Open

Wasm not defined / Fails to compile #453

K4rakara opened this issue Mar 11, 2020 · 0 comments

Comments

@K4rakara
Copy link

wasm-project.zip
Not sure why in the slightest, but this project fails to run, with the error "wasm not defined".
On my desktop, I can't even compile, it throws the following error.

> gulp --gulpfile ./build.ts

[17:14:04] Requiring external module ts-node/register

/run/media/disk/dev/misc/wasm-gameoflife/gol/node_modules/natives/index.js:143
    fn(internalBinding)(nm.exports, cachingRequire, nm, nm.filename, '<no dirname available>')
                       ^
ReferenceError: primordials is not defined
    at fs.js:39:5
    at req_ (/run/media/disk/dev/misc/wasm-gameoflife/gol/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/run/media/disk/dev/misc/wasm-gameoflife/gol/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/run/media/disk/dev/misc/wasm-gameoflife/gol/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:1151:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1040:19)
    at require (internal/modules/cjs/helpers.js:72:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @wasm/[email protected] build: `gulp --gulpfile ./build.ts`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @wasm/[email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jack/.npm/_logs/2020-03-11T21_14_04_787Z-debug.log
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

1 participant