Skip to content

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

@lperezp

Description

@lperezp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingjs

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions