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

CRA 3 not loading/hydrating javascript: The resource (*.chunk.js) was preloaded using link preload but not used within a few seconds from the window's load event. #438

Closed
kmcaloon opened this issue Jan 30, 2020 · 3 comments

Comments

@kmcaloon
Copy link

So everything is working beautifully apart from my app not hydrating after loading as you can see on my demo site: https://neutrino-server.site/courses/basic-flight-training/tampa-fl/

Not sure where to even start here. I took a look at similar issues i.e. #264 but nothing seems to be working for me. For what it is worth I am using a custom craco config and running react-snap programmatically after everything is finished:

    compiler.hooks.done.tap( 'React Snap Plugin', stats => {

      ReactSnap.run( {
        inlineCss: true,
        asyncScriptTags: true,
        //fixWebpackChunksIssue: false,
      } );

    } );

The problem occurs no matter how I configure the options. Any idea how I can start troubleshooting?

@kmcaloon kmcaloon changed the title CRA 3 not hydrating javascript: The resource (*.chunk.js) was preloaded using link preload but not used within a few seconds from the window's load event. CRA 3 not loading/hydrating javascript: The resource (*.chunk.js) was preloaded using link preload but not used within a few seconds from the window's load event. Jan 30, 2020
@pacarvalho
Copy link

@kmcaloon Were you able to solve your issue?

@kmcaloon
Copy link
Author

Sorry @pacarvalho this was a while back and have since switched to Gatsby for other reasons. I don't think I was able to solve this though.

@nandorojo
Copy link

nandorojo commented Aug 21, 2020

I'm still seeing this issue. Did anyone fix it?

Update turns out it works for me, but only if I use serve -s build. I thought this lib let you serve the index.html as an HTML file without needing a server, but I guess I misunderstood.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants