错误:wasm streaming compile failed: CompileError: AsyncCompile: Wasm decoding failed
解决办法:
https://github.com/WebAssembly/design/blob/master/Web.md#webassemblycompilestreaming
image.png
https://trac.nginx.org/nginx/ticket/1606
image.png
打开nginx config目录下的mime.types文件,在types中添加application/wasm wasm;
执行nginx -s reload
发现错误仍然存在,原因是vscode对wasm文件的diff不敏感,重新编译生成wasm文件,报错解决