type=“module” not executing script
So I was making a kaboomjs game and decided to split my scenes into different files, which meant that I had to use import statements and then
type=“module” in index.html. However, the script simply does not execute. I have faced this problem before but still don’t know how to fix it. (I am using safari on my phone).
Any help would be appreciated!
Make sure you check your browser console (In inspect element)
It shows this:
Uncaught TypeError: Failed to resolve module specifier "kaboom.js". Relative references must start with either "/", "./", or "../".
Console says: "Relative references must start with either "/", "./", or "../".
at /" I have no idea what that means though.