title: Uncaught TypeError: Cannot read property 'type' of undefined in three.js when loading a gLTF model and creating a mesh
body: <p>When I tried to create a mesh with a simple sphere geometry and material I was experiencing and error where a property was undefined.</p>
  <p>Example of the error:</p>
  <pre><code>three.js:16203 Uncaught TypeError: Cannot read property 'type' of undefined at
  WebGLIndexedBufferRenderer.setIndex
  </code></pre>
  <p>This error doesn't appear with the model that I've loaded using gLTF until I try to add both the model and the mesh to the scene at the same time.</p>