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

fix(frontend): vite dependency rollup issue #71

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Conversation

sebastien-comeau
Copy link
Contributor

@sebastien-comeau sebastien-comeau commented Jan 10, 2025

Use the WASM build @rollup/wasm-node instead of the native build with Vite.

Rollup now includes native code that is automatically installed (and removed) as an optional npm dependency if your platform and architecture is supported. More precisely, Rollup has a list of optionalDependencies, each of which only install on a specific os and cpu. If your system is not supported, you will receive an error message when starting Rollup that will tell you about your platform and architecture and gives you a list of supported ones. In that case, you can instead use @rollup/wasm-node as a platform-independent drop-in replacement.

https://rollupjs.org/migration/#general-changes

Related known issues with NPM:

  • 5.0.2 Cannot find module '@rollup/rollup-linux-arm64-gnu' on multi platform build #15167
  • Cannot find module @rollup/rollup-win32-x64-msvc on a fresh created js vanilla project #17284

@sebastien-comeau sebastien-comeau merged commit 6dfa62d into main Jan 10, 2025
6 checks passed
@sebastien-comeau sebastien-comeau deleted the seb/fix-rollup branch January 10, 2025 17:53
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

Successfully merging this pull request may close these issues.

2 participants