-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Missing resources for / #11524
Comments
Might be related to #11453 |
Maybe, though there's no 404 stuff involved here. |
Sorry you're seeing this, @Jivings Could you please link to a minimal reproduction if possible? |
I haven't been able to reproduce locally 🙁 Is there any more information I can get you, or does the sentry report help at all? Under what circumstances might this occur so that I may be able to narrow it down? |
I am also seeing this but only after deploying, I can't reproduce locally.
I have noticed though that I only get this error on a branch where I tried to removed ThemeProvider (styled-components) from my code and I am guessing somewhere things got messed up in the file structure since no packages were added/updated/removed. Will update if I pinpoint the cause but there isn't much to go by. |
I am having the same issue here... first, sorry for my english, i'm spanish-speaker ¯_(ツ)_/¯
First of all, a little of context, I had an issue related to a carousel package Tiny Slider which was using The mentioned error happens in two related scenarios: Scenario 1 Scenario 2 Hope this gives some hints to find and solve the issue |
Hi Guys. Not sure if this helps but I had a similar issue, it turns out my missing resource was a missing (production) env variable for firebase. This in turn seemed to effect my images - this must have had an impact on a build step Can provide more information if required... |
@Jivings can you update gatsby and gatsby-plugin-offline package? this happens when you make new build but resources from previous are no longer available (so html cached by offline plugin tries to use not available resources). In newer gatsby/offline packages versions we added reload after service worker updates to not leave site in unusable state |
In my case, I changed an import from |
I'm getting these errors but only in IE11. I'm not sure exactly which resources are failing since it's only occurring in one browser, as far as I can tell, but I do see some errors in react-dom (see screenshots below). I updated all of my Gatsby dependencies to their latest versions and added a polyfill in case it was choking on Symbol or something too modern, yet the errors still occur. I also have image loading problems in IE11, too, I believe like what is discussed in #4021. If I remove all images and the offline plugin, I get no errors on page load but I do when I navigate to any other pages, even if they don't contain images. It looks like some JS fails to load and IE presents probably the HTML 404 page instead. So there's definitely something wonky going on here. I'm working off of my develop branch deployed to Netlify to test out fixes on various devices. Here are some screenshots from my VM: |
@marcysutton Have you made any headway with this? I'm seeing the same thing in IE11 only. No issues in any other browsers. |
Not yet! @sidharthachatterjee or @pieh, is this enough information to debug? Pretty blocking issue in IE11 at the moment. |
@Undistraction I have some good news: the team helped me debug this issue, and they pointed out that IE11 is having trouble with uncompiled arrow functions in a plugin ( Here's where I used it on my site: https://github.com/marcysutton/gatsby-site/blob/develop/gatsby-config.js#L107 Let us know if you still have any trouble! |
Trying to fix this: gatsbyjs/gatsby#11524 (mobile only!)
Same issue here, seeing this periodically on websites I haven't visited for a few days (the Gatsby website as well). Not on IE11 but Chrome. After a few seconds of blank page, there's a refresh after which everything is working again. Versions of one example: |
I am getting this error in IE (edge mode). It is pointing to the file when clicking on the error in IE it points to this code:
|
@marcysutton Thanks for the update. I hadn't spotted that syntax error in your console. For us we have no error at all. The page navigation is completely broken in IE11, and the page doesn't hydrate. On a page refresh we do get the missing resources error. We've had to drop IE11 support because there is nothing to go on. No issues with any other browser. My hunch is that this is a polyfill issue, but that the error is being swallowed somewhere, but that's just a guess. I don't understand how the page hydration can crash without any error in the console. |
I am getting this error on (1st) load. Seems to clear after reload. Production / Firebase hosting. |
@rkhayat could you link to a URL or better yet provide a reproduction? Thanks! |
FWIW I wrote up my experience with this issue in #12399 It might be of help to anyone hitting the |
I was having what seems like a similar issue: One could navigate the site fine, but on any page, if they did a refresh, the page would be blank and I'd see Not being able to reproduce this locally with |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! Thanks for being a part of the Gatsby community! 💪💜 |
@gatsbyjs-read-only-user Not stale 😬 |
@marcysutton How did you identify the plugins/modules that contain uncompiled arrow functions? |
The version rollback down to |
FYI @Moocar has a PR up to make resource loading more robust e.g. retry failed or partially loaded resources #14889 If any of you have time to review / try that, it'd be much appreciated. I apologize for not catching this earlier — it wasn't clear how widespread this was or what the cause was before digging in recently with @Moocar |
I don't know whether it'll help more, but I had it on Was fixed after a reload, but seemed worth to put here @KyleAMathews |
I believe this could be an issue with the offline plugin configuration, since it might not be correctly checking for changes with page manifest files, and therefore keeping old ones about. Going to try and look at this next week with @wardpeet since I've written a lot of the offline plugin - sadly I've been really busy recently with exams and planning to move house so haven't been able to check out all these changes properly 😞 |
@davidbailey00 Before you get too deep in debugging, we experience this with or without the offline plugin. |
@davidbailey00 we also were having the issue without the offline plugin. It is in my node modules, but still commented out of my config file. |
We are also experiencing this without the offline plugin installed. |
@davidbailey00 yeah we think the main fix is correctly handling some unusual error cases for ajax requests & adding retry logic #14889 |
We've deployed the PR to gatsbyjs.org for the last ~4-5 days and things are looking really good! There's been no new "missing resources" events since the deploy. |
@wardpeet is working on some tests to simulate network problems but we should have this out in the next 24 hours. |
Thank you @KyleAMathews can't wait to get this running! |
@KyleAMathews thanks to you and your team for that update! |
@KyleAMathews I'm having this issue still occurring on my site. locally it works fine and in prod it doesn't. Also, I'm seeing it 100% of the time, not sporadically like some of the comments above. That said, I've looked through most of the solutions and utilizing them hasn't resulted in a fix. Do you have a specific version of Gatsby that has the fix in it so I can ensure that I'm hitting something different? I'm willing to share URL privately as well as add contrib access to the private repo if someone from the gatsby team wants to take a look (DM me on twitter). Thanks for any tips/suggestions - to be clear the things I've tested are:
|
We should have this one fixed in the latest gatsby release |
Please upgrade and let us know if there's any more trouble! Closing this for now. |
@KyleAMathews Thanks - I did, unfortunately this didn't fix it although I think it's something else as the Missing Resources error went away but the primary issue is still there so I filed issue #15322 |
We won't get Missing Resources because it was deleted and replaced with a different error: https://github.com/gatsbyjs/gatsby/pull/14889/files#diff-3182dbe2979ea0744c50242668edc572L173 We recently deployed this fix, going to check out bug logs for new/different errors. EDIT: yeah looks like |
@jackhair what browser are you testing on? I'm pretty sure we added a finally polyfill. Might be wrong though. mind sharing your repo? or a small reproduction? |
We're seeing this across several browsers in production: |
Do you mind sharing your website url so I can have a look and maybe debug it a bit? |
Sure! https://ritual.com |
@jackhair I can confirm the bug. Could you make a new issue with the info provided above? |
@wardpeet @jackhair I managed to track down our issue with the finally polyfill. We found one of our dependencies was including babel-polyfill with useBuiltins: usage instead of entry. Either way we had to downgrade redux-api-middleware (not related to gatbsy). this solved our |
Thanks, we've seen this before with node_modules and babel-runtime. I'll have to rethink on how we can fix this in the future or at least give a proper error message. |
Summary
Periodically on my production site I'm seeing the following error;
It seems like sometimes this causes the site to not render at all and just show a blank page.
Relevant information
You can see the trace on Sentry here
Environment (if relevant)
This is the env on which the site is built;
No idea where to start with debugging this so any help is appreciated!
The text was updated successfully, but these errors were encountered: