Payload Admin Webpage not Loading? #765
Replies: 11 comments 6 replies
-
Hey! |
Beta Was this translation helpful? Give feedback.
-
@joecaraccio could you share your repo for me to take a look at it? We have other discussions that include working docker configs and I'm happy to help with that if it is the cause. You can check the react versions using It shouldn't matter whether you're using |
Beta Was this translation helpful? Give feedback.
-
@DanRibbens |
Beta Was this translation helpful? Give feedback.
-
Mismatching react versions |
Beta Was this translation helpful? Give feedback.
-
I think I am seeing it again unfortunately. Can you elaborate a little bit on what I should be checking? Mismatching versions between react and react-dom? Any other potential causes? |
Beta Was this translation helpful? Give feedback.
-
"In order for Hooks to work, the react import from your application code needs to resolve to the same module as the react import from inside the react-dom package. If these react imports resolve to two different exports objects, you will see this warning. This may happen if you accidentally end up with two copies of the react package." I'm trying to make sense of this, but wondering if these conflicting versions is part of the issue? |
Beta Was this translation helpful? Give feedback.
-
so I just used yarn and added a dependency: "resolutions": { which seemed to solve it! |
Beta Was this translation helpful? Give feedback.
-
Ahh nice. Yeah @joecaraccio in my experience, this is almost 100% of the time caused by having more than one copy of React installed, which your I will move this to a discussion so we keep it around in case anyone else runs into this! |
Beta Was this translation helpful? Give feedback.
-
Hey everyone! FYI I tried plugging the app I am developing into the beta version |
Beta Was this translation helpful? Give feedback.
-
imo both fixes for this issues (npm vs. yarn) should be documented somehow. i was hyped trying out 1.0 and immediately was facing this issue and needed to find a closed issue which let me here. this is not an problem with people installing 2 versions of react its a problem with dependencies required by payload. npm
yarn
|
Beta Was this translation helpful? Give feedback.
-
Bug Report
I simply have an instance of payload running in an express server running on a doctor container. Virtually nothing special on the setup.
When I load the webpage, it seems like the background of the panel renders.. but nothing else
I noticied some react related errors in the console, but have no other useful information in the command line.
Few of the errors:
That uncaught promise at the bottom looks like its the culprit.. any idea why?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions