Javascript is not loaded in Gatsby@5 in production build #38578
Replies: 4 comments
-
And by the way, I can access the file: |
Beta Was this translation helpful? Give feedback.
-
Having the same issue. In gatsby-ssr.tsx:
gatsby-browser.tsx
|
Beta Was this translation helpful? Give feedback.
-
@oskarkivra having the exact same issue. Were you able to figure out a fix for this? |
Beta Was this translation helpful? Give feedback.
-
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! |
Beta Was this translation helpful? Give feedback.
-
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?"
Beta Was this translation helpful? Give feedback.
All reactions