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

Fails to copy @swc/wasm-web wasm module in node_modules/.vite #8497

Closed
7 tasks done
clinuxrulz opened this issue Jun 8, 2022 · 2 comments
Closed
7 tasks done

Fails to copy @swc/wasm-web wasm module in node_modules/.vite #8497

clinuxrulz opened this issue Jun 8, 2022 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@clinuxrulz
Copy link

Describe the bug

GET http://localhost:8080/node_modules/.vite/wasm-web_bg.wasm 404 (Not Found)

It fails to copy "wasm-web_bg.wasm" into the "node_modules/.vite" folder. Copying manually make it work though.

Reproduction

https://stackblitz.com/edit/vitejs-vite-pbzkfp?file=main.js

System Info

System:
    OS: Windows 10 10.0.19043
    CPU: (8) x64 Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz
    Memory: 2.98 GB / 7.90 GB
  Binaries:
    Node: 14.17.1 - C:\Program Files\nodejs\node.EXE
    npm: 7.21.0 - ~\Documents\GitHub\designer\www\node_modules\.bin\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (102.0.1245.33)
    Internet Explorer: 11.0.19041.1566

Used Package Manager

npm

Logs

No response

Validations

@sapphi-red
Copy link
Member

Closing as it is a duplicate of #8427.

Set optimizeDeps.exclude for a workaround.

export default {
  optimizeDeps: {
    exclude: ['@swc/wasm-web']
  }
}

@sapphi-red sapphi-red closed this as not planned Won't fix, can't repro, duplicate, stale Jun 8, 2022
@sapphi-red sapphi-red added duplicate This issue or pull request already exists and removed pending triage labels Jun 8, 2022
@clinuxrulz
Copy link
Author

Thank you so much! Sorry to bother with duplicate issue.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants