I'm playing a little with three.js for a WebGL based visualization. I found quite good examples on https://threejsfundamentals.org/ but I run into problems when I'm trying to run these locally on my PC.
I have copied the complete HTML example with embedded JavScript code, it includes three.module.js using the absolute URL:
<script type="module">
import * as THREE from 'https://threejsfundamentals.org/threejs/resources/threejs/r122/build/three.module.js';
...
The result is, that it draws me the example visualization. If I change this to the local path of the module it fails to load (the module is present locally at this URL (relative to the index.html I'm writing).
<script type="module">
import * as THREE from 'resources/threejs/build/three.module.js';
...
Thanks for pointing out the error, I think it's a misunderstanding about loading modules in Javascript.