Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Vercel deployment failing.

default discord avatar
iamonuwalast year
15

Getting this error message on vercel with Payload 3.0-beta. Please help



Getting this error on console


Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.
  • default discord avatar
    ritsu0455last year

    Do you have logs from Vercel? They can give you more information what's the error about.

  • default discord avatar
    iamonuwalast year

    here you go.



    packages used


    "dependencies": {
        "@payloadcms/db-postgres": "3.0.0-beta.90",
        "@payloadcms/next": "3.0.0-beta.90",
        "@payloadcms/plugin-cloud": "3.0.0-beta.90",
        "@payloadcms/plugin-sentry": "0.0.6",
        "@payloadcms/plugin-seo": "3.0.0-beta.90",
        "@payloadcms/richtext-lexical": "3.0.0-beta.90",
        "@payloadcms/storage-vercel-blob": "3.0.0-beta.90",
        "babel-plugin-react-compiler": "0.0.0-experimental-48eb8f4-20240822",
        "cross-env": "^7.0.3",
        "graphql": "^16.8.2",
        "jsonwebtoken": "^9.0.2",
        "next": "15.0.0-canary.104",
        "payload": "3.0.0-beta.90",
        "react": "19.0.0-rc-06d0b89e-20240801",
        "react-dom": "19.0.0-rc-06d0b89e-20240801",
        "sharp": "0.32.6"
      },
      "devDependencies": {
        "@types/jsonwebtoken": "^9.0.6",
        "@types/node": "^20.14.9",
        "@types/react": "npm:types-react@19.0.0-rc.0",
        "@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
        "eslint": "^8.57.0",
        "eslint-config-next": "15.0.0-canary.104",
        "typescript": "5.5.4"
      },
  • default discord avatar
    ritsu0455last year

    do you have a

    webpack

    property somewhere in your payload config?

  • default discord avatar
    iamonuwalast year

    no ser.

  • default discord avatar
    ritsu0455last year
    plugin-sentry

    isn't compatible with 3.0 ATM

  • default discord avatar
    iamonuwalast year

    Okay

  • default discord avatar
    ritsu0455last year
  • default discord avatar
    iamonuwalast year

    disabled it.

  • default discord avatar
    ritsu0455last year

    and I'm not sure will we add this plugin to 3.0



    because this should work

  • default discord avatar
    iamonuwalast year
  • default discord avatar
    ritsu0455last year

    I would remove the import as well

  • default discord avatar
    iamonuwalast year

    okay, running it on vercel now



    I am equally connecting to supabase database and getting this error


    ⨯ error: relation "users" does not exist
        at /var/task/.next/server/chunks/4886.js:84:145649
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
        at async /var/task/.next/server/chunks/4886.js:216:15074
        at async tW (/var/task/.next/server/chunks/4886.js:160:1606)
        at async Object.t1 [as findOne] (/var/task/.next/server/chunks/4886.js:160:5175)
        at async m (/var/task/.next/server/app/(payload)/admin/[[...segments]]/page.js:108:57640) {
      length: 105,
      severity: 'ERROR',
      code: '42P01',
      detail: undefined,
      hint: undefined,
      position: '216',
      internalPosition: undefined,
      internalQuery: undefined,
      where: undefined,
      schema: undefined,
      table: undefined,
      column: undefined,
      dataType: undefined,
      constraint: undefined,
      file: 'parse_relation.c',
      line: '1392',
      routine: 'parserOpenTable',
      digest: '564418865'
    }


    any idea why?



    this is happening after I disabled the sentry

  • default discord avatar
    ritsu0455last year

    cause you need to run migrations I believe command

    pnpm payload migrate

    before start or after build



    and as well create them before with

    pnpm payload migrate:create

    if you're using postgres



    this you should run locally

  • default discord avatar
    iamonuwalast year

    For the production?



    I should connect to the db locally and run this?



    Thanks, it works.



    I believe the original error was due to sentry

  • default discord avatar
    ritsu0455last year

    either run it for the production db locally or modify

    build

    command in package.json:

    "pnpm payload:migrate && next build",
Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.