Like what we’re doing? Star us on GitHub!

React Console errors

3 weeks ago

Hey folks, when I run the admin portal on my express server, I'm getting some react errors when I get to the admin page. Any ideas where I should start for a fix?

  • jacobsfletch
    Payload Team
    3 weeks ago

    This is very likely due to reason number 3 from that error message. You probably have more than one copy of React. Do you have React installed as a dependency in your project? Or do you have Payload linked locally? These are two common causes.

  • badjab326
    3 weeks ago

    Thanks a ton! Turns out there are multiple react dependencies in my project, so I added react to my overrides to fix it.

    "overrides": {
        "graphql": "15.8.0",
        "react": "18.2.0"
Open the post
Continue the discussion in Discord
Can't find what you're looking for?
Get help straight from the Payload team with an Enterprise License.Learn More