Tastenkunst / brfv5-browser

Beyond Reality Face SDK - BRFv5 - Platform: Browser
229 stars 48 forks source link

Failed to load module script: The server responded with a non-JavaScript MIME type of "text/plain" #7

Closed kashyap32 closed 4 years ago

kashyap32 commented 4 years ago

I started a server with python but I am getting this error.

MarcelKlammer commented 4 years ago

Which html file did you load? Sounds like a type="module" is missing in a script tag.

kashyap32 commented 4 years ago

index.html

MarcelKlammer commented 4 years ago

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?

kashyap32 commented 4 years ago

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

MarcelKlammer commented 4 years ago

Works as well:

/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -m http.server 8000

kashyap32 commented 4 years ago

So it's working in edge (Microsoft) image

but in chrome I am getting this error -

image

MarcelKlammer commented 4 years ago

Then I guess, that your local server configuration is too old and doesn't know how to deliver javascript modules.