You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Vite 5 with Sandpack, it throws this error. There is a workaround using the package.json overrides field, but that workaround is broken in Sandpack.
Uncaught (in promise) Error: Your current platform "linux" and architecture "x32" combination is not yet supported by the native Rollup build. Please use the WASM build "@rollup/wasm-node" instead.
The error message indicates that we should use @rollup/wasm-node to replace rollup, which is documented in the Rollup 4 changelog. But since Rollup is an internal dependency of Vite, we should be able to use a npm "override" like this sample. The problem is that this workaround doesn't work in the sandpack depedency resolver.
Bug report
When using Vite 5 with Sandpack, it throws this error. There is a workaround using the package.json
overrides
field, but that workaround is broken in Sandpack.Here is a minimal reproduction (Codesandbox link):
The error message indicates that we should use
@rollup/wasm-node
to replacerollup
, which is documented in the Rollup 4 changelog. But since Rollup is an internal dependency of Vite, we should be able to use a npm "override" like this sample. The problem is that this workaround doesn't work in the sandpack depedency resolver.Packages affected
Description of the problem
The text was updated successfully, but these errors were encountered: