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

Docker build error with vite, related to existing npm bug #7

Open
1 task
aidanprior opened this issue Oct 11, 2024 · 0 comments
Open
1 task

Docker build error with vite, related to existing npm bug #7

aidanprior opened this issue Oct 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aidanprior
Copy link
Collaborator

aidanprior commented Oct 11, 2024

Description

Vite build will throw an error when building.
Error: Cannot find module @rollup/rollup-linux-arm64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.

Current workaround eliminates the error, but means that we are npm installing from package.json instead of package-lock.json, (creating potential versioning issues down the road).

This may be directly solved by a solution to the npm issue, but more research is needed.

Reproduction

run docker build . in the project directory

System information

System:
OS: macOS 15.0.1
CPU: (8) arm64 Apple M1
Memory: 60.73 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node
npm: 10.8.2 - ~/.nvm/versions/node/v20.16.0/bin/npm
Browsers:
Chrome: 129.0.6668.91
Safari: 18.0.1

Additional information

No response

👨‍👧‍👦 Contributing

  • 🙋‍♂️ Yes, I'd love to make a PR to fix this bug!
@aidanprior aidanprior added the bug Something isn't working label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant