openplayground icon indicating copy to clipboard operation
openplayground copied to clipboard

After run calling localhost:5432 there is a white page

Open MauGal opened this issue 2 years ago • 6 comments

After pip and run, in localhost:5432 I have a white page, only title in tab report OpenPlayground. I open developer tool and in console I have this error message:

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. errore-openplayground 2023-04-10 173808

MauGal avatar Apr 10 '23 15:04 MauGal

Is this after running openplayground run? Any errors in the console?

AlexanderLourenco avatar Apr 10 '23 16:04 AlexanderLourenco

yes, I run with openplayground run. In console there aren't errors. errore-openplayground 2023-04-11 084908

MauGal avatar Apr 11 '23 06:04 MauGal

Same issue here image OS: Win10 Python -v 3.11.3

sbaglieri avatar Apr 11 '23 14:04 sbaglieri

@sbaglieri @MauGal could you try pip installing the latest package?

AlexanderLourenco avatar Apr 13 '23 20:04 AlexanderLourenco

@AlexanderLourenco I have upgraded package (openplayground version 0.1.5) and I have the same issue. Same error in developer console on index.d826928d.js. No error in terminal console My OS is Win 11 and python version 3.11.0

I have tried to uninstall and reinstall but nothing, it's equal.

MauGal avatar Apr 14 '23 06:04 MauGal

Same issue, Windows 11 Python 3.10.11

Edit: Information from Chrome DevTools

A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. Starting in Chrome 101, the amount of information available in the User Agent string will be reduced. To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData. Note that for performance reasons, only the first access to one of the properties is shown.

Edit 2: This appears to be something in the React framework having to do with relative pathing of files and/or pointing to files that are not on your main path. I suspect something to do with where the server folder is deployed (maybe in the user's account folder structure) is not playing well with React. (I'm not a React dev, so I'm basing this off initial Google-Fu.)

Terristen avatar May 01 '23 23:05 Terristen