umi 怎么引入wasm 报错,求助求助 #13088
Unanswered
iamzero7766
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Error: ERROR in ./src/oss_wasm/oss_wasm_bg.wasm

Module parse failed: Internal failure: parseVec could not cast the value
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
按照https://umijs.org/docs/introduce/faq#%E6%80%8E%E4%B9%88%E7%94%A8-webassembly 这个文档内容配置了.umirc.ts文件,但是还是报了上述错误,要怎么解决啊
文件目录是这样 是通过 wasm-pack build --target bundler 导出的pkg文件夹。
Beta Was this translation helpful? Give feedback.
All reactions