VUE3 IFC IFCLoader WebAssembly magic word 00 61 73 6d
VUE3 IFC WASM WebAssembly
·
CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 21 44 4f
WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 21 44 4f @+0). Build with -s ASSERTIONS=1 for more info.
ifcLoader.ifcManager.setWasmPath("ifc/"); //问题出在这里,wasm路径配置有问题。
VUE项目目录/public/js/ifc/web-ifc.wasm
VUE项目目录/public/js/ifc/web-ifc-api.js
调试时关注网络读取web-ifc.wasm的URL是否有正常的文件返回。调整路径配置即可。
[参考文章]
https://ifcjs.github.io/info/docs/Hello%20world/
https://www.cnblogs.com/sweeeper/p/14362265.html
本文谢绝一切形式的转载。欢迎指正。
更多推荐
已为社区贡献2条内容
所有评论(0)