next-sanity-image icon indicating copy to clipboard operation
next-sanity-image copied to clipboard

With the release of Next.js v15, will next-sanity-image be updated to reflect the changes?

Open VincentLu91 opened this issue 1 year ago • 3 comments

Trying to avoid broken changes

VincentLu91 avatar Oct 22 '24 19:10 VincentLu91

+1 on this

ericvalcik avatar Mar 21 '25 15:03 ericvalcik

Installing next-sanity-image in a Next.js 15.3.0 project and seeing the following peer dependency warnings:

WARN  Issues with peer dependencies found  
apps/web  
└─┬ next-sanity-image 6.1.1  
  ├── ✕ unmet peer next@"^13.0.0 || ^14.0.0": found 15.3.0  
  └── ✕ unmet peer react@^18.0.0: found 19.1.0

So far, the package works as expected in our use case, but it would be great to see the peer dependencies updated to reflect compatibility with newer versions.

JamesGriz avatar Apr 30 '25 09:04 JamesGriz

Sharing my package.json>overrides section which worked for me to get rid of the warnings:

  "overrides": {
    "next-sanity-image": {
      "next": "^15.0.0",
      "react": "^19.0.0"
    }
  }

mxschmitt avatar Apr 30 '25 09:04 mxschmitt

#72 has been integrated to support Next 15!

Sorry for the late update, missed this open issue after integrating the PR.

lorenzodejong avatar Aug 19 '25 11:08 lorenzodejong

lol and then 2 months later they release Next 16. Lorenzo prolly thinking bruh

michaelmannucci avatar Nov 18 '25 15:11 michaelmannucci