bitjson / typescript-starter

Quickly create and configure a new library or Node.js project
https://bitjson.github.io/typescript-starter/
MIT License
3.48k stars 245 forks source link

Cannot find namespace 'WebAssembly' #243

Closed tranlehaiquan closed 4 years ago

tranlehaiquan commented 4 years ago
node_modules/@bitauth/libauth/build/module/lib/bin/secp256k1/secp256k1-wasm-types.d.ts:80:24 - error TS2503: Cannot find namespace 'WebAssembly'.

80     readonly instance: WebAssembly.Instance;

Node: v12.16.1 NPM: v6.14.8 Try both in Macos and windows. Did I do something wrong? Thank you.

bitjson commented 4 years ago

@tranlehaiquan thanks for opening an issue! This was an oversight – I just fixed the issue and added automated tests to make sure builds never error in the future.

Just waiting for CI to pass, then I'll have #244 merged and released. 👍

bitjson commented 4 years ago

Fix released in https://github.com/bitjson/typescript-starter/commit/586cdb3029ab2c52e2f0893adafbbb017059e1c9 🚀

Thanks!