React Console errors

default discord avatar
badjab326
6 months ago
2

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?

  • discord user avatar
    jacobsfletch
    Payload Team
    6 months 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.

  • default discord avatar
    badjab326
    6 months 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
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.