title: Uncaught TypeError: THREE.GLTFLoader is not a constructor
body: <p>I am new to THREE js I can't figure out the error</p>
  
  <p>when I am run my code the following error is showing</p>
  
  <blockquote>
    <p>Uncaught TypeError: THREE.GLTFLoader is not a constructor</p>
  </blockquote>
  
  <pre><code>var loader = new THREE.GLTFLoader();
  
          loader.load('modelReq/Gully_update_2.gltf', 
              function (gltf) {
  
                  scene.add(gltf.scene);
                  gltf.animations; 
                  gltf.scene;
                  gltf.scenes; 
                  gltf.cameras; 
                  gltf.asset;
  
  
              },
  
              function (xhr) {
                  console.log((xhr.loaded / xhr.total * 100 ) + '% loaded' );
              },
  
              function (error) {
                  console.log( 'An error happened = ', error );
              }
          );
  </code></pre>
  
  <p>and error is at <code>var loader = new THREE.GLTFLoader();</code></p>
  
  <p>My html file :</p>
  
  <p>
      </p>
  
  <pre><code>    &lt;link rel="stylesheet" href="css/main.css"&gt;
      &lt;script src="js/plugins/three.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/plugins/TrackballControls.js"&gt;&lt;/script&gt;
      &lt;script src="js/plugins/stats.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/plugins/GLTFLoader.js"&gt;&lt;/script&gt;
      &lt;script src="js/custom.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="animate"&gt;
          &lt;canvas&gt;&lt;/canvas&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>and the GLTFLoader.js is in the path : <code>&lt;script src="js/plugins/GLTFLoader.js"&gt;&lt;/script&gt;</code></p>