Orbit Controls Package not Loading

I’m installing threeJS from CDN.

When trying to add the orbit controls using the second method (in the image below), my project seems to fail to load the package.

The console error goes as follows:

Failed to load resource: the server responded with a status of 404 ()

Even when visitng the link, “https://unpkg.com/three@/examples/jsm/controls/OrbitControls.js,” I find nothing, so I wanted to ask if this was an issue from my side or is this just the wrong link?

Thanks for reading, and sorry if anything I say sounds confusing, I’m not very expierenced with threeJS :sweat_smile:

Hi!
Try this link to the latest revision: https://unpkg.com/three@0.144.0/examples/jsm/controls/OrbitControls.js

Oh, looks like I needed to specify the version number, thanks!

Still didn’t work, I think the issue is with my code.

I also realized that I accessed three js script through this line

<script src="https://threejs.org/build/three.js">

When I switched to the method for CDN, three js didn’t work for me.
I’m using threejs with repl.it, so you can see what I have here: https://threejs.hamzahal.repl.co/