I installed phaser in my project directory and i made a “script.mjs” file with “import Phaser from “phaser”;” it give me this error even thou the extension is “mjs”
actually i deleted the line from script.mjs and it gives me the same error and the change is not reflected in error log
Thanks for the advice ! Now i have another error :Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/html”. Strict MIME type checking is enforced for module scripts per HTML spec.
Probably the script URL is wrong.