At the beginning of my three.js project, I opted for version 0.118.0 and included the necessary imports as shown below.
import * as THREE from 'https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a1d5c9d3c4c4e1918f9090998f91">[email protected]</a>/build/three.module.js';
import { GLTFLoader } from 'https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cebaa6bcabab8efee0fffff6e0fe">[email protected]</a>/examples/jsm/loaders/GLTFLoader.js'
Initially, using this setup posed no problems. However, when attempting to switch to a newer version like 0.148.0, I encountered a TypeError as displayed below.
Uncaught TypeError: Failed to resolve module specifier "three". Relative references must start with either "/", "./", or "../".
I have double-checked that the paths to the addons are adjusted based on the version used, but the issue remains unresolved. Any insights on what might be causing this problem? Thank you.