Module '"@babylonjs/core/Physics"' has no exported member 'HavokPlugin'


I just have followed the docs, but that always the same. p-p
I also reinstall the babylonjs, but nothing changed

cc @Cedric or @RaananW

The reason you don’t have havok is because Havok was introduced in babylon 6 and you have a babylon 5 as a dependency.

I am not sure why you are not using the latest (7.X), but you should at least use 6.X. and another thing - remove the “babylonjs” dependency, it is not needed. @babylonjs/core is the right one in your case.

3 Likes

The latest version of Babylon.js is specified in the package.json file; however, you also need to update the other packages to match this version like this:

    "@babylonjs/core": "^7.26.0",
    "@babylonjs/loaders": "^7.26.0",
    "babylonjs": "^7.26.0",
    "babylonjs-gltf2interface": "^7.26.0",
    "babylonjs-gui": "^7.26.0",
    "babylonjs-loaders": "^7.26.0"
1 Like

thanks… I just didnt delete old version correctly :melting_face:

1 Like