(First time)
I used python -m SimpleHTTPServer 8000 using python 2.7.15 to generate a web server for my simple JavaScript game (still learning), but it seems that it has some error, which makes the canvas of my HTML file wont show.
The JavaScript works totally fine in my GitHub page, but it won't show in local web server. https://jcloh98.github.io/jsgame/simplegame2.html
All the codes are exactly the same as the website. That's all the code I used.
This is the error showed in the console log.
Failed to load module script: The server responded with a non-JavaScript MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.
https://jcloh98.github.io/jsgame/simplegame2.html
It is expected to show a black canvas with a aqua paddle at the bottom of the canvas, like https://jcloh98.github.io/jsgame/simplegame2.html