redphx / joydance

Use Joy-Cons to play Ubisoft's Just Dance on all platforms
MIT License
84 stars 5 forks source link

Grey Screen when loading the localhost page #16

Open stevenboeren opened 2 years ago

stevenboeren commented 2 years ago

image I tired everything still get this grey screen :(

redphx commented 2 years ago

Hi @stevenboeren , sorry for the problem. Could you please provide some more info about:

If you're using Chrome, please open DevTools (https://developer.chrome.com/docs/devtools/open/), then share me a screenshot of the Console tab.
Thank you.

XFeliXBlack commented 1 year ago

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. DevTools failed to load source map: Could not load content for chrome-extension://eppiocemhmnlbhjplcgkofciiegomcon/content/safecheck-notification/serialization.js.map: System error: net::ERR_BLOCKED_BY_CLIENT DevTools failed to load source map: Could not load content for chrome-extension://eppiocemhmnlbhjplcgkofciiegomcon/content/serialization.js.map: System error: net::ERR_BLOCKED_BY_CLIENT DevTools failed to load source map: Could not load content for chrome-extension://eppiocemhmnlbhjplcgkofciiegomcon/content/app-notification/serialization.js.map: System error: net::ERR_BLOCKED_BY_CLIENT

beto86gt commented 1 year ago

Was this ever resolved??

I am also getting a blank screen and the same error about the content type.

beto86gt commented 1 year ago

Ugh, finally got it working renaming all module JS from .js extension to .mjs extension

johnsrj commented 11 months ago

I've been getting the same screen Joy dance 0.5.2 Windows 11 Home 22H2 Browser Microsoft Edge 115.0.1901.183 also tested on the latest version for chrome and firefox This is the output console for the dev tools image

mmayonesa commented 8 months ago

@beto86gt could you please explain how you solved it? :( I didnt understand what you said

rmo1ualberta commented 5 months ago

Hey all! Seems like @beto86gt was right, though they didn't provide a very thorough explanation. To fix this issue, there will be a couple of things to be renamed in the /static/js/ folder:

And then, in the /static/index.html file, rename the src in line 13 from:

<script type="module" src="/js/app.js"></script>

to

<script type="module" src="/js/app.mjs"></script>

Next, in the /static/js/app.mjs file (that you renamed), in the first two lines, rename the import paths accordingly; from

import { h, Component, render } from '/js/preact.module.js';
import htm from '/js/htm.module.js';

to

import { h, Component, render } from '/js/preact.mjs';
import htm from '/js/htm.mjs';

And that should fix the "blank screen". Happy dancing!

BroJac5246 commented 5 months ago

rmo1ualberta, I'm not experiencing this issue, but nevertheless thank you for providing a solution! I believe I have preciously experienced it.