Error: Uncaught TypeError: Failed to resolve mpdule specifier "three". Relative references must stastart with either "",""", or ".."

Hello Guys, I know I probably shouldn’t be here bothering professionals with my problem, but I’ve been working on a project. I decided to make a 3D like game, and am only using html, javascript css and for the 3D part tree.js. I’ve written my entire code but I keep getting this error: Uncaught TypeError: Failed to resolve module specifier “three”. Relative references must start with either “/”, “./”, or"../" or this error: Uncaught TypeError: THREE.PointerockControls is not a constructor
at (ix):307:18, no matter what I do neither will go away, could somebody help me? Here is a screenshot on what batgpt told me the problem is related to:

if any further screenshots or specifications are needed please ask. Also I never learned how to programm in html, javascript, css or even three.js, this is my first time please dont judge me.

your screen grab shows

new PointerLockControls(

which is correct,

but you say your error is

Uncaught TypeError: THREE.PointerockControls is not a constructor

I dont see in your screen grab how it is possible to get this error.

Here is a working PointerLockControls example if you want to see how to use it.

With the provided screenshot I didnt get that error I got the other one:
Uncaught TypeError: Failed to resolve module specifier “three”. Relative references must start with either “/”, “./”, or"../". I only got this one: Uncaught TypeError: THREE.PointerockControls is not a constructor. Once I tried applying a solution from chatgpt, bu then I went back to the code seen in the screenshot.

see the importmap in my example.
your browser doesn’t know what “three” means so you need to tell it, because the PointerLockControls addon makes a reference to it.
More info at Using Import Maps - Three.js Tutorials

Thank you very much for your help, I think I understand it now, once I’m able to I’ll add the importmap and update you on if it worked or not.