Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend shows blankpage #878

Open
apvarana opened this issue May 24, 2024 · 4 comments
Open

Frontend shows blankpage #878

apvarana opened this issue May 24, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@apvarana
Copy link

While running the code I receive following error and shows up blank page

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.

Any fix for this issue. Pls help

@apvarana apvarana added the bug Something isn't working label May 24, 2024
@abhahn
Copy link
Member

abhahn commented May 24, 2024

Hi @apvarana , thanks for raising the issue.

Can you share a few more details, such as:

  • Context for how you are running the code (locally or in deployment)
  • Full stack trace for the error you reported above

@apvarana
Copy link
Author

Added this in the top of app.py
import mimetypes
mimetypes.add_type('application/javascript', '.js')
mimetypes.add_type('text/css', '.css')

used localhost instead of 127.0.0.1 - Refer to bug #70 . same issue

There is no trace except the below
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.

@abhahn
Copy link
Member

abhahn commented May 30, 2024

Assigning to @iseabock -- do you happen to know why this might be needed in some situations in the backend?

@iseabock
Copy link
Contributor

iseabock commented Jun 3, 2024

I don't, but I'll investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants