In HTML when I put my main js file ad a type="module"
so I can import modules in it the javascript breaks and won’t work all the functions won’t work at least and then when I try to remove it the webpage does not work because there is still an import in my js file so I remove that then I have no modules so what do I do? My program breaks when my script.js file is type=“module”.
import * as treeGrow from './script_tree_funcs.js';
<script src="script.js" type="module"></script>
VIDEO TO VISUALISE WHAT I MEAN
(make sure to set it to 760p)