Nextjs payload deploy on app engine

default discord avatar
eloahsam
2 months ago
2

I recently tried to deploy the the my nextjs + payload project on Google cloud platform onto app engine and build completes successfully and my website appears perfect but once I got to /admin payload stays in the “loading state” and the only error I get in my logs is



TypeError: Cannot convert undefined or null to object at Function.getPrototypeOf (<anonymous>) at Object.<anonymous> (/workspace/.next/server/chunks/622.js:167623:158) at o (/workspace/.next/server/webpack-api-runtime.js:14:18) at Object.<anonymous> (/workspace/.next/server/chunks/622.js:165859:30) at o (/workspace/.next/server/webpack-api-runtime.js:14:18) at Object.<anonymous> (/workspace/.next/server/chunks/622.js:167669:15) at o (/workspace/.next/server/webpack-api-runtime.js:14:18) at Object.<anonymous> (/workspace/.next/server/chunks/622.js:165643:14) at o (/workspace/.next/server/webpack-api-runtime.js:14:18) at Object.1375 (/workspace/.next/server/chunks/622.js:83229:19)
  • discord user avatar
    jarrod_not_jared
    Payload Team
    2 months ago

    Are you on latest nextjs? Can you try their canary version?

  • default discord avatar
    eloahsam
    2 months ago

    Yes I’m on the latest version



    @jarrod_not_jared i found a solution , i had both a pnpm.lock and package lock in the repo and after i deleted the pnpm one and regenerated my package lock it works switly , so i guess theres a conflict

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.