title: Threejs importing OrbitControl.js
body: <p>So I'm just using a normal html with no other libraries..like reactjs,vitejs,vuejs etc... I want it just to import as normal html and just put in the <code>script</code> tag.</p>
  <p>So the thing is I don't know why I keep receiving the wrong import giving me something like this</p>
  <p><code>Uncaught TypeError: Failed to resolve module specifier &quot;three&quot;. Relative references must start with either &quot;/&quot;, &quot;./&quot;, or &quot;../&quot;.</code><br />
  This problem occured only in my OrbitControls.js and I don't understand what it means.</p>
  <p>And this how it looks in my script terminal and file locations.</p>
  <p><a href="https://i.stack.imgur.com/0SL7u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0SL7u.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/wT8Z6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wT8Z6.png" alt="enter image description here" /></a></p>
  <p>I tried to copy the unpkg link of the orbit control but also it doesn't work..I tried also to pass the raw file but still doesn't work.. Can anyone help me through this?</p>
  <pre><code>    &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.7.9/dat.gui.min.js&quot; integrity=&quot;sha512-WoO4Ih0CDOSLYafy22wZD/mcJ7k0ESLqtQsFa6zFKnEUrbtuGU+GkLtVhgt93xa2qewG5gKEC6CWlN8OaCTSVg==&quot; crossorigin=&quot;anonymous&quot; referrerpolicy=&quot;no-referrer&quot;&gt;&lt;/script&gt;
      &lt;script src=&quot;OrbitControls.js&quot; type=&quot;module&quot;&gt;&lt;/script&gt;
  
    &lt;script type=&quot;module&quot;&gt;
          import * as THREE from 'https://unpkg.com/three@0.141.0/build/three.module.js';
          import * as dat from './dat.gui.module.js'
  
          import { OrbitControls }  from 'OrbitControls.js'
          // console.log(dat)
          // const orbit = new OrbitControls()
          console.log(OrbitControls)
    &lt;/src&gt; 
  </code></pre>
  <p>I also tried to get the link of the OrbitControls by doing something like this</p>
  <pre><code>import { OrbitControls } from 'https://unpkg.com/browse/three@0.141.0/examples/jsm/controls/OrbitControls.js'
  console.log(OrbitControls)
  </code></pre>