microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.68k stars 2.68k forks source link

Failed to load module script: Expected a JavaScript module #301

Open vinothmdev opened 1 year ago

vinothmdev commented 1 year ago

While running the code I receive following error

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.

The application load blank page.

pamelafox commented 1 year ago

I think this is same as https://github.com/microsoft/sample-app-aoai-chatGPT/issues/70 ?

Igor-Kuzenkov commented 9 months ago

I got the same problem on my local Win 10 dev environment. Python 3.11.7. No errors in console after .\start.cmd. Just blank page at http://localhost:50505 and the mentioned error in Chrome DevTools window. Workaround from #70 does not work either.

Any update? TIA

sgkalyans commented 8 months ago

Anyone facing the same issue on current version? I'm not able to run the application due to the same issue.

apvarana commented 6 months ago

Same problem here, shows empty page, any suggestions

rkwzhuang commented 1 month ago

Try updating to the latest node version. I had the same issue on v17.9.1 and fixed it by updating to v20.18.0