When I import HavokPhysics with the 2nd sentence, the brower report a RuntimeError,
but when i replace it with the 1st sentence,the project run successfully, How can I use the 2nd way successfully?
my npm package version: “@babylonjs/havok”: “^1.3.10”
runtimeError:
have seen from other topic,add this to vite.config.ts :
export default defineConfig({
…
optimizeDeps: {
exclude: [“@babylonjs/havok”],
},
…
}), it works for me