This error will be resolved after Rapier.js is updated after v0.14.0
.
In the meantime, you can add the following code to your vite.config.js
file to disable treeshaking when the app is built.
build: {
rollupOptions: {
treeshake: false
}
}
}