Using threejs from CDN and requiring OrbitControl as well, I encountered an issue with importing both Three and OrbitControl using the latest version 0.148.0:
import * as THREE from 'https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6f1b071d0a0a2f5f415e5b57415f">[email protected]</a>/build/three.module.js'
import {OrbitControls} from 'https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cdb9a5bfa8a88dfde3fcf9f5e3fd">[email protected]</a>/examples/jsm/controls/OrbitControls.js'
To resolve the issue, it was necessary to use version 0.126.1 for OrbitControl only:
import * as THREE from 'https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2b5f43594e4e6b1b051a1f13051b">[email protected]</a>/build/three.module.js'
import {OrbitControls} from 'https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b5c1ddc7d0d0f5859b8487839b84">[email protected]</a>/examples/jsm/controls/OrbitControls.js'
Why is this the case? Thank you for your help as I am a beginner in this.