Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with Next.js 15 canary #61

Open
denolfe opened this issue Oct 5, 2024 · 0 comments
Open

Incompatible with Next.js 15 canary #61

denolfe opened this issue Oct 5, 2024 · 0 comments

Comments

@denolfe
Copy link

denolfe commented Oct 5, 2024

Hey All, we at Payload are extremely excited about getting this to work with our platform. People are asking about running Payload on Cloudflare quite often, and there is a lot of potential here.

Payload's version 3 is now built on Next.js but is still in beta and thus requires Next.js v15.0.0-canary.173 or higher.

We followed the getting started docs here, then attempted to upgrade to the latest Next.js + React versions and received the following errors:

/Users/elliot/dev/sandbox/my-next-app/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/wrangler/wrangler-dist/cli.js:29768
            throw a;
            ^
{
  type: 'error',
  reason: 'Failed to construct initial bundle',
  cause: UserError: Failed to build
      at bundleWorker (/Users/elliot/dev/sandbox/my-next-app/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/wrangler/wrangler-dist/cli.js:165378:15)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async build (/Users/elliot/dev/sandbox/my-next-app/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/wrangler/wrangler-dist/cli.js:175368:59),
  source: 'BundlerController',
  data: undefined
}

We realize we're on the cutting edge here, but we're very excited to try this out. We'd like to know when we should try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant