genkit icon indicating copy to clipboard operation
genkit copied to clipboard

[JS] Peer dependency conflict with Next.js 16 in @genkit-ai/next

Open lperezp opened this issue 1 year ago • 1 comments

Describe the bug I am unable to use @genkit-ai/next in a project running Next.js 16.5.0 due to a peer dependency conflict.

To Reproduce Initialize a project with Next.js version 16.5.0. Run npm install @genkit-ai/next (or pnpm add). See the peer dependency conflict error stating that @genkit-ai/next requires next@^15.0.0 but 16.5.0 is installed.

Expected behavior The plugin should allow installation with Next.js 16.x versions, as it is the current stable major version.

Screenshots If applicable, add screenshots to help explain your problem.

Runtime (please complete the following information): OS: macOS

  • Version 12.7

** Node version 22.12.0

Additional context I have verified that updating the peer dependency to ^16.0.0 resolves the issue and allows the project to build correctly. I am submitting a PR with this fix.

lperezp avatar Nov 29 '25 17:11 lperezp

This issue is resolved in PR #3867

lperezp avatar Nov 29 '25 19:11 lperezp