I have an HTML page that has some “regular” in-line javascript, meaning code created using the good-old <script>
tag.
-I also have a <script type="module">
section a bit further down so I can do this:
import { OrbitControls } from "./node_modules/three/examples/jsm/controls/OrbitControls.js";
Problem is when I try call a function that’s in the <script type="module">
from the regular <script>
section I keep getting errors.
I tried putting all the code in <script type="module">
section, but I’m still getting errors.
I know I’m not sharing any specific code here, but are there just some sort of generic do’s and don’t’s that I need to be aware of to get this working? What’s going on here - isn’t it all just javascript, and shouldn’t the HTML page “see” all of it once the page is loaded?