Struggling to load an STL model on three.js, constantly receiving the error message "THREE.STLLoader is not a constructor" in the console.
This is the code I'm using:
var loader = new THREE.STLLoader();
loader.load( '3dbenchy-1.stl', function ( geometry ) {
scene.add( new THREE.Mesh( geometry ) );
});