-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
5.0.2 Cannot find module '@rollup/rollup-linux-arm64-gnu' on multi platform build #15167
Comments
Would you check if this fixes your issue too? |
Tried it. I removed node_modules and deleted yarn.lock. Did not work. I did the same thing, then upgraded yarn from 3.x to 4.x. Same issue. I did some digging, and I'm pretty sure the issue is because vite 5.x upgraded to rollup 4.x and the related breaking change in rollup was this:
I'm pretty sure I'm running into this issue here: rollup/rollup#5194. I'm not getting any errors from yarn, but even though I've specified multiple architectures in my yarnrc file, I'm only able to retrieve the darwin and windows binaries from rollup. Is there any way to use vite with the @rollup/wasm-node package? This is going beyond my knowledge level here. |
See my last comment on the rollup issue you linked rollup/rollup#5194 (comment) To force "pnpm": {
"overrides": {
"rollup": "npm:@rollup/wasm-node"
}
} Other package manager have similar features (npm, yarn) Let's close this issue for now, as it can be tracked in rollup |
I can verify that this works with "resolutions": {
"rollup": "npm:@rollup/wasm-node"
} |
Note that if you're on yarn 2+, then you'll also need the range as well: "resoltuions": {
"rollup": "npm:@rollup/wasm-node@*"
} |
I can also verify that it works with
|
Describe the bug
I have a multi platform build which runs on mac/windows locally while developing and on linux in a docker container. When I try to run the app in a docker container, even through my yarn file contains both current and linux as the supported architectures, I receive an error
This worked just fine with 4.x and if an architecture was missing from 4.x it would actually warn you to add the supported architectures to .yarnrc file
My vite.config.js is minimal:
Reproduction
https://github.com/zthun/works
Steps to reproduce
You will need docker, git, and yarn installed at minimum.
This results in the error for the works-web project:
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: