-
Notifications
You must be signed in to change notification settings - Fork 215
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
Unable to load the mesop app in my browser #441
Comments
Can you open Chrome DevTools and paste your console log messages, especially any errors? |
Getting these two errors: 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. maybe due to : web server isn't correctly identifying the zone.umd.js file as a JavaScript file |
Looks like a similar issue as #463. Could you follow the steps in #463 (comment) and let me know what you get? Thanks. |
Also, just checking how are you installing Mesop? If you're not using a virtual environment, please follow these steps: https://google.github.io/mesop/getting_started/installing/#create-a-venv-environment |
same issue, followed the venv instructions from the getting-started guide. Just see "Loading..." with these errors in the browser console: The resource from “http://localhost:32123/zone.js/bundles/zone.umd.js” was blocked due to MIME type (“text/plain”) mismatch (X-Content-Type-Options: nosniff). |
I'm getting the same error seems like a flask issue https://stackoverflow.com/questions/59355194/python-flask-error-failed-to-load-module-script-strict-mime-type-checking-i |
Thanks @GTimothee for the pointer, I think I've fixed it in #532 and have cut a new release v0.9.2. Please the latest version and let me know if it's fixed the issue : Thanks! |
Thanks, After the update its working now. |
Bug: Unable to load the Mesop App in my browser . It is stuck as Loading in the window.
Steps to reproduce the behavior:
Using VScode run the below simple hello_world.py from the mesop sample.
import mesop as me
@me.page()
def app():
me.text("Hello World")
Screenshots
![image](https://private-user-images.githubusercontent.com/23297408/340103252-37927d13-e11b-48c8-95d8-e607932ae8d4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzNzY0NTYsIm5iZiI6MTcyMTM3NjE1NiwicGF0aCI6Ii8yMzI5NzQwOC8zNDAxMDMyNTItMzc5MjdkMTMtZTExYi00OGM4LTk1ZDgtZTYwNzkzMmFlOGQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDA4MDIzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQzYThlMjY2NzEzZWRmYjFmZTg2MmRmM2YyMzUzOTBlYWQxZDA5NDQ1OWMzOTg2M2QwZjkxOGZmNGExMjQyMmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.s70_cCcezkYAyNNzfReomZsIyh6Ezd06PBQ3NksCSDY)
Desktop System Info
The app is running and hot reloading and everything works fine. I am not able to load the UI in the browser.
The text was updated successfully, but these errors were encountered: