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 · 5 comments
Open

Incompatible with Next.js 15 canary #61

denolfe opened this issue Oct 5, 2024 · 5 comments
Labels

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.

@vicb
Copy link
Contributor

vicb commented Oct 7, 2024

Supporting v15 is definitely on our radar but not before the official release.

Our priority for now is to converge with Open Next/SST. It will enable moving faster in the future.

@sourabpramanik
Copy link

I am also trying to deploy the Payload 3.0 app which uses Next 15. I am able to build the app using wrangler successfully, just that when running the local server it throws errors.

Here are the error logs:

--- 2024-10-09T05:11:35.740Z debug
[InspectorProxyWorker] RUNTIME INCOMING MESSAGE {
  method: 'Runtime.consoleAPICalled',
  params: {
    type: 'error',
    args: [ [Object], [Object] ],
    executionContextId: 283096929,
    timestamp: 1728450695732,
    stackTrace: { callFrames: [Array] }
  }
}
---

--- 2024-10-09T05:11:42.559Z error
�[31m✘ �[41;31m[�[41;97mERROR�[41;31m]�[0m �[1mFailed to prepare server Error: An error occurred while loading the instrumentation hook�[0m


@vicb vicb added the planned label Oct 9, 2024
@eve0415
Copy link

eve0415 commented Oct 21, 2024

Next.js v15 is now out!

https://github.com/vercel/next.js/releases/tag/v15.0.0

@nathanclevenger
Copy link

Is there an update or ETA for Next.js 15 support?

@vicb
Copy link
Contributor

vicb commented Oct 30, 2024

Probably second half of November

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

No branches or pull requests

5 participants