Error: Relative references must start with either "/", "./", or "../"

Hi guys,
I am just begginer and I have this error code:

Uncaught TypeError: Failed to resolve module specifier “three”. Relative references must start with either “/”, “./”, or “…/”.


Do you know what am I doing wrong?
thanks

Try it with:

import * as THREE from "../node_modules/three/build/three.module.js
1 Like