Three.js Cannon.js init


When connecting the debugger, I ran into the problem that it only works locally, if everything is installed via npm, it throws errors.

// let CannonDebugRenderer = new THREE.CannonDebugRenderer(scene, world) 

How can fix it ?

I also found such a topic on the forum, but it still does not work)

any idea ?