compile for node14
Hello, first of all ty for providing this js runestone lib
For some reasons, I have to use node 14,
if I execute examples/node.js file under node 14, there's an error like Error [ERR_INTERNAL_ASSERTION]: TypeError: wasm function signature contains illegal type
But I'm not familiar with rust or turning it into wasm can you provide some tips, so I can change some config of this repo, and build my wasm lib for node14 thx in advance
looks like this trans string is errorοΌ
@daorren @ONLY-yours
I reproduced your issue in codesandbox, it seems to be caused by node14 not supporting bigint. I solved this issue by adding --experimental-wasm-bigint parameters in node command.
Try this:
Btw, if you don't have control over the node command parameters, you can add a compilation process before the code is executed.
@jeasonstudio Actually I prefer to compile a new Lib for node14
so can you help to provide some tips, since I think changing some configs and then executing command in package.json is enough
maybe I'm wrong about this,but I think you can give me some directions,thx
@jeasonstudio Actually I prefer to compile a new Lib for node14
so can you help to provide some tips, since I think changing some configs and then executing command in package.json is enough
maybe I'm wrong about this,but I think you can give me some directions,thx
Node14 has become too outdated, and we don't plan to support it, the only friction is bigint. This is an experimental feature in node14. You can consider turning it on or try other bigint polyfill.