Production version does not render; reload works #11870
Unanswered
EdmundsEcho
asked this question in
Q&A
Replies: 1 comment
-
I get this same error in production. I think it could be related to the fact the minified filename hash never changes, and with caching, it's not serving the new contents. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello --
First and foremost, I have not had the opportunity to visit this resource for a few years. This despite using create-react-app throughout. It has been a real pleasure working with this technology. I have learned so much from the documents and the community's blogs etc. I accomplished a great deal and have many folks I have never met to thank - Thank you.
I have been working on the production version of the app on kubernetes. I'm having a tough time debugging this despite my use of the
--profile
build flag.There are times (of course) when part of the app needs to re-render. When a certain component is present, the re-render results in a white screen, with the following error in the console:
The first bit of the app's code associated with the error is
selectionModel
in the following component:My first idea was to ensure the props were valid before rendering. So, the parent component has the guard that returns some "neutral" value in the event either
getValue
orfieldType
are not as required.I'm posting my question here, and not with
useSelector
fromreact-redux
to learn what one generally needs to consider when transitioning from thedevelopment
version and the production build. There is a big black box in all that is baked-in to create-react-app that I would like to first get a sense for. For instance, is there anything to consider going from the dev http server to something likenginx
(as is the case for me)? Is there something about caching that might prevent the error in one context versus the other?Finally, what is the best way to work my way through this in the minified js code?
Thank you in advance to anyone with some guidance here.
- E
Beta Was this translation helpful? Give feedback.
All reactions