An error occurred on client

default discord avatar
Plain
last month
4

Hi, I've just built my site (npm run build) and i'm getting

An error occurred on client

in a few places, where no content is shown on this page. It works fine on dev, and throws no errors - is this something common and is their a fix?



Wondering if it comes from the rich text field, since that is the content

  • default discord avatar
    Derosul
    last month

    For a bit more context, can you open the error stacktrace? 🙂

  • default discord avatar
    Plain
    last month

    All good, I think i've got it. I had an error with

    _document.js


    Thanks

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.