Javascript is not loaded in Gatsby@5 in production build #38578
Unanswered
oskarkivra
asked this question in
Help
Replies: 4 comments
|
And by the way, I can access the file: |
0 replies
|
Having the same issue. In gatsby-ssr.tsx: gatsby-browser.tsx |
0 replies
|
@oskarkivra having the exact same issue. Were you able to figure out a fix for this? |
0 replies
|
I have found the solution. For my project, it was failing because the user's browser was not parsing the JS, as the chunk contained new syntax. Hope it helps! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I've recently upgraded our Gatsby site to Gatsby@5. Everything appears to work perfectly in development mode (
gatsby develop), but when I build the static files (gatsby build) and serve them using a file server, the JavaScript code doesn't function correctly on the client side.After about 20 seconds, I encounter an error in the console:
I understand that this issue may be challenging to debug with the provided information, but is there something obvious that I might have missed?"
All reactions