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

Lots of 404 errors in conole #4

Open
hrishikesh-k opened this issue Jul 3, 2020 · 1 comment
Open

Lots of 404 errors in conole #4

hrishikesh-k opened this issue Jul 3, 2020 · 1 comment

Comments

@hrishikesh-k
Copy link

I'm seeing a lot of 404 errors in browser console on the Netlify deployed website. The path to the requested resource is domain/undefined. Chrome mentions the cause of the error as gatsby-browser.js:39, clicking on which, I get this part of code fetch(jsUrl) which comes here:

  // Loop over all resources and fetch the page component and JSON
  // to add it to the sw cache.
  prefetchedPathnames.forEach(path => {
    const { jsUrl, dataUrl } = getResourceURLsForPathname(path)
    fetch(jsUrl)
    fetch(dataUrl)
  })

I've also attached a screenshot from the network tab.

image

Can this be fixed?

@hrishikesh-k
Copy link
Author

At the moment, I just created a file names undefined in my static folder, built the website and the errors are gone. Quite a stupid but simple hack, but, it shouldn't be needed.

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

1 participant