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

Not found: /node_modules/.vite/deps/<package>_bg.wasm #14

Closed
Niedzwiedzw opened this issue Sep 18, 2022 · 1 comment
Closed

Not found: /node_modules/.vite/deps/<package>_bg.wasm #14

Niedzwiedzw opened this issue Sep 18, 2022 · 1 comment

Comments

@Niedzwiedzw
Copy link

Niedzwiedzw commented Sep 18, 2022

I use vite 3.1, and I'm trying to use this project to load wasm-pack created package. I'm doing

wasm-pack build <package> --target web
wasm-pack pack <package> 
yarn add ./<package>/pkg/<pkg>-<version>.tgz

typescript is fine with this, I'm not getting errors so the package is there. When I inspect node_modules, all the files are also there. but for some reason, in .vite/deps/ there's just the .js files (no sign of *_bg.wasm files)
here's the full error:

Not found: /node_modules/.vite/deps/wasm_launcher_extensions_bg.wasm
Error: Not found: /node_modules/.vite/deps/wasm_launcher_extensions_bg.wasm
    at resolve (file:///C:/Users/niedzwiedz-serwer/blazing-client/node_modules/@sveltejs/kit/src/runtime/server/index.js:267:13)
    at Object.handle (file:///C:/Users/niedzwiedz-serwer/blazing-client/node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:336:66)
    at respond (file:///C:/Users/niedzwiedz-serwer/blazing-client/node_modules/@sveltejs/kit/src/runtime/server/index.js:295:40)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async file:///C:/Users/niedzwiedz-serwer/blazing-client/node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:406:22

this happens when I run yarn dev

@Menci
Copy link
Owner

Menci commented Sep 21, 2022

Use --target bundler. Don't use --target web.

@Menci Menci closed this as completed Sep 21, 2022
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

2 participants