Peer dependency issue: @docusaurus/plugin-ideal-image
throws a warning at install if react-19 is used
#11000
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
With a fresh install of the latest docusaurus
3.7.0
and using the official plugin@docusaurus/plugin-ideal-image
, after you've rannpm install
the following warnings are thrown:What's the reason?
This plugin is depending on the
slorber/react-ideal-image
repository which depends onreact-waypoint
which as of my current knowledge does not support react 19 yet.Currently I don't see an obvious solution to this as
react-waypoint
is not that active regarding contribution.Possibly it should be switched to
https://www.npmjs.com/package/react-intersection-observer
which does support react 19 and can be used to achieve a similar functionality asreact-waypoint
is used. The latter uses scroll event listeners the prior uses theIntersection Observer API
.Reproducible demo
No response
Steps to reproduce
npx create-docusaurus@latest my-website classic --typescript
npm install --save @docusaurus/plugin-ideal-image
Expected behavior
A fresh setup of docusaurus and the ideal image plugin should not throw peer dependency issues
Actual behavior
Your environment
Self-service
The text was updated successfully, but these errors were encountered: