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
Failed to run on arm platforms #5194
Comments
On Windows ARM64 (with ARM64 Node.js), |
It looks like the problem is that we do not have a MUSL build for regular |
I've got another error on my Raspberry Pi:
Is this caused by the same issue? |
Probably. Unfortunately, I was not able to cross-compile an ARM Linux build for MUSL systems, which yours likely is. I would have hoped you get a better error with latest Rollup, though, which should point you to use the WASM build. |
Thank you very much for the clarification! How could I achieve a WASM build with Vite? |
@morpheus-87, if you are using "pnpm": {
"overrides": {
"rollup": "npm:@rollup/wasm-node"
}
} |
Thanks for your help, @patak-dev , it works like a charm 🥳 because I'm using
|
@morpheus-87 this not working for me also i cannot install this package on my docker container @patak-dev can you help me?
|
It doesn't work for me either, with npm 😕 I tried the following just in case, I tried overriding it all the way as well just in case: "overrides": {
"rollup": "npm:@rollup/wasm-node"
} Ensured that it was indeed overridden:
But getting the same error on
Using EDIT: I'm starting to think that npm's |
@silvenon you can try yarn, this working. |
What did work with npm was specifying a version higher than what my "overrides": {
"vite": {
"rollup": "npm:@rollup/wasm-node@^4.9.2"
}
} My Now building my app works! 🥳 |
Can't manage to run it. |
`Error: Cannot find module @rollup/rollup-linux-x64-gnu.` see `rollup/rollup#5194 (comment)
I'm switching from Yarn to pnpm and getting this on a project that previously worked just fine. Adding:
Seems to fix that particular error, but then it just errors out with:
🤷♂️ I have used Vite with pnpm before without issues so I'm very confused as to why it's suddenly not working. I'm assuming there's some other issue afoot but I really can't think of anything. |
Today I upgraded to latest vite version and I got this issue on Gitlab CI, with this stack trace:
I try to override rollup version used by vite with the following trick in
I have found a workaround : removing the |
How can I fix it, I don't want to delete the lock file, which would cause the project's dependencies to be upgraded, which would create new problems
|
I was able to build for armv7 musl by adding |
Only if we change the rust version too often. As it stands, we did not do that more than once, and I do not plan on doing it too often. So I would not see that as an argument, but apparently there is some demand for that platform. |
I had to use below code in package.json file and remove node_modules folder and run npm install. "overrides": {
"vite": {
"rollup": "npm:@rollup/wasm-node"
}
} I had to run below commands for dockerized app where docker compose run reusebin-ui npm i && \
docker compose down && \
rm -rf node_modules && \
docker compose up --build |
It's not only rust, but also the node version needs to be fixed. After upgrading node version a test might fail. Made a PR upstream: napi-rs/napi-rs#2019, napi-rs/napi-rs#2020 |
Now that I actually managed to add smoke tests for (emulated) ARM v7 to the pipeline, I think I see what you mean. Of course it could also be a bug in the emulator, but the MUSL version does not run, not because of Rollup but because running |
I encountered this again and was able to resolve by running npm install from inside the container: |
Rollup Version
4.0.2
Operating System (or Browser)
Alpine 3.18
Node Version (if applicable)
18.18.1
Link To Reproduction
https://github.com/joshuaavalon/rollup-arm-bug
Expected Behaviour
Build successfully like other platforms.
Actual Behaviour
When you use
node:18-alpine
Docker and target platform likelinux/arm/v6
andlinux/arm/v7
, it show the following error.https://github.com/joshuaavalon/rollup-arm-bug/actions/runs/6490693336/job/17626861855
The text was updated successfully, but these errors were encountered: