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.

Nextjs payload deploy on app engine

default discord avatar
eloahsamlast year
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)
  • Are you on latest nextjs? Can you try their canary version?

  • default discord avatar
    eloahsamlast year

    Yes I’m on the latest version



    @281120856527077378

    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

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.