DEV Community

Discussion on: Creating a rudimentary pool table game using React, Three JS and react-three-fiber: Part 1

Collapse
thisispete profile image
pete

I'm getting errors when I get to the orbit controls.. "The above error occurred in the component:" "Uncaught TypeError: target is not a constructor" ...

Collapse
thisispete profile image
pete

import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'

looks like this line changed and now needs to be destructured from OrbitControls