FirstPersonControls is not a constructor

FirstPersonControls is not a constructor

please I do not understand, here is my code:

camera = new THREE.PerspectiveCamera (75, window.innerWidth / window.innerHeight);
controls = new THREE.FirstPersonControls (camera);

but the console sends me back:

Uncaught TypeError: THREE.FirstPersonControls is not a constructor.

Where is the problem ? help me

That happens because THREE.FirstPersonControls is no part of the library core. You have to include it manually like in this example:

The file is located here: examples/js/controls/FirstPersonControls.js