<script type="module">
import {OrbitControls} from "https://cdn.skypack.dev/three@0.138.0/examples/jsm/controls/OrbitControls.js";
</script>
Gives the following error:
Uncaught SyntaxError: The requested module '/-/three@v0.138.0-zvVD8VzksUZ5anXAslX5/dist=es2019,mode=raw/examples/jsm/controls/OrbitControls.js' does not provide an export named 'default'
I was trying to import Three.js's OrbitControl module
I defined the following:
Gives the following error: