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

[BUG]: Next 15 not supported #62

Open
1 task done
sammaxwellxyz opened this issue Nov 7, 2024 · 3 comments · May be fixed by #63
Open
1 task done

[BUG]: Next 15 not supported #62

sammaxwellxyz opened this issue Nov 7, 2024 · 3 comments · May be fixed by #63
Assignees
Labels
needs: triage Waiting for a contributor to triage type: bug Something isn't working

Comments

@sammaxwellxyz
Copy link

Describe the bug

When I try to install alongside next 15 an error is raised including

npm error Conflicting peer dependency: [email protected]
npm error node_modules/next
npm error   peer next@"^9.5.0 || ^10.2.1 || ^11.1.0 || ^12.1.0 || ^13.0.0 || ^14.0.0" from [email protected]
npm error   node_modules/next-safe
npm error     next-safe@"^3.5.0" from the root project

Steps To Reproduce

  1. Create new Next.js app
  2. Setup next-safe:
    npm add next-safe
    
  3. Start app
  4. See error

Version

v3.x.x

Relevant log output

❯ npm add next-safe
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/next
npm error   next@"15.0.3" from the root project
npm error
npm error Could not resolve dependency:
npm error peer next@"^9.5.0 || ^10.2.1 || ^11.1.0 || ^12.1.0 || ^13.0.0 || ^14.0.0" from [email protected]
npm error node_modules/next-safe
npm error   next-safe@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error

Code of Conduct

  • I agree to follow this project's Code of Conduct
@sammaxwellxyz sammaxwellxyz added needs: triage Waiting for a contributor to triage type: bug Something isn't working labels Nov 7, 2024
@sammaxwellxyz sammaxwellxyz linked a pull request Nov 7, 2024 that will close this issue
@brandanking-decently
Copy link

This would be great, especially if this project is still maintained

@trezy
Copy link
Owner

trezy commented Dec 10, 2024

The issue is that React 15 relies on React 19, which uses a new (and very different) reconciler.

This comment provides more context on my plans for the library.

@davidmytton
Copy link

We ended up building a new library because this one seems unmaintained: https://blog.arcjet.com/nosecone-a-library-for-setting-security-headers-in-next-js-sveltekit-node-js-bun-and-deno/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: triage Waiting for a contributor to triage type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants