I have been trying to load a STL model on three.js I keep getting THREE.STLLoader is not a constructor on the console
this is my code:
var loader = new THREE.STLLoader();
loader.load( '3dbenchy-1.stl', function ( geometry ) {
scene.add( new THREE.Mesh( geometry ) );
});