Closed kashyap32 closed 4 years ago
Which html file did you load? Sounds like a type="module" is missing in a script tag.
index.html
Starting a server using Python like this:
python -m SimpleHTTPServer 8000
works for me.
I'm not sure how I can help you here. Maybe update your python to the latest version?
SimpleHTTPServer is for python2 and it's deprecated for python version 3. For python3 it's something like this:- python -m http.server 8000
if you have both python2 and python3 then try something like this:- python3 -m http.server 8000
Works as well:
/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -m http.server 8000
So it's working in edge (Microsoft)
but in chrome I am getting this error -
Then I guess, that your local server configuration is too old and doesn't know how to deliver javascript modules.
I started a server with python but I am getting this error.