It seems your application is missing a correct usage of an import map which means bare module specifier can’t be handled. I suggest you have a look at one of the official examples to see how it looks like: three.js examples
It does not matter what example your are picking. They all have one above the actual script section.