-
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
Error after build: Uncaught TypeError n(...) is not a function (prop-types) #4133
Comments
I'd guess you're caching the JavaScript? https://www.gatsbyjs.org/docs/caching/ |
@KyleAMathews Ah, it appears you are correct. I remember reading that page and so had not implemented any JS caching myself, but I failed to check whether my server setup had caching in place already (and it does). Thanks for the help. |
This was referenced Jan 12, 2022
This was referenced Mar 20, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gatsby: 1.9.202
I haven't been able to reliably reproduce the issue, but thought I'd post this just in case someone else has noticed a similar issue.
More than once, I've noticed that when I load my site after a fresh production build, some of the content will load and some will not. My first thought was that my layout/index.js was loading but not the page content, but upon inspecting the DOM I found that the page elements were there but not fully rendered.
The javascript console included this error:
Clicking on the first index.js:27 link showed me what appears to be code from the prop-types package, which led me to think it could be related to this prop-types webpack issue
The error persists through page refreshes until I clear the cache with a hard Ctrl+F5 refresh.
I realize that I haven't provided much to go on in terms of reproducing the bug, but would be happy to learn how I can better debug this.
The text was updated successfully, but these errors were encountered: