Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在Vue+node项目使用,报错了 #1

Open
envdevprod opened this issue Sep 6, 2023 · 1 comment
Open

在Vue+node项目使用,报错了 #1

envdevprod opened this issue Sep 6, 2023 · 1 comment

Comments

@envdevprod
Copy link

envdevprod commented Sep 6, 2023

 Failed to compile.

./node_modules/@fuyoo/wasm-hasher/pkg/wasm_hasher.js 499:53
 Module parse failed: Unexpected token (499:53)
 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

if (typeof input === 'undefined') {
>         input = new URL('wasm_hasher_bg.wasm', import.meta.url);
}
 const imports = __wbg_get_imports();

请问大佬,是不是需要什么而外的配置或依赖?

@envdevprod
Copy link
Author

目前执行了npm install wasm-loader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant