You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It uses react-inspector dependency, which is NOT React 19 compatible, and hasn't been updated for 2 years already.
Unsure if there are any alternatives, but people seem to be navigating away from react-inspector:
Reproduction
Install @ladle/react with React 19, observe peerDependency warnings coming up from your package manager, for example:
➤ YN0060: │ react is listed by your project with version 19.0.0 (p1ec28), which doesn't satisfy what @ladle/react and other dependencies request (but they have non-overlapping ranges!).
Environment
OS: [e.g. iOS] n/a
Browser [e.g. chrome, safari] n/a
Version [e.g. 22] n/a
The text was updated successfully, but these errors were encountered:
Not ideal, but since I use react-inspector only with ladle - and since react is backwards-compatible - it should work.
(Maybe something won't, I haven't figured what is react-inspector used for yet, and if react 19 makes any difference in this matter, but stories work well)
It appears that react-inspector is only used by the action addon, which is disabled by default, and I've been unsuccessful at turning on/using, so I'm not sure if it's actually broken or how.
But I feel like there's something missing here with the addon concept, in that they're actually tightly coupled features and dependencies. If I don't need action inspection (and thus don't need react-inspector), there's no way to fully unplug and opt-out.
Was/is the plan to separate the addons into more of a plugin architecture? If so, this one feels like a good first candidate to peel off, since it's causing problems that feel unlikely to be solved upstream given the lack of recent updates to react-inspector.
Describe the bug
Unsure if there are any alternatives, but people seem to be navigating away from react-inspector:
Reproduction
Install @ladle/react with React 19, observe peerDependency warnings coming up from your package manager, for example:
Environment
The text was updated successfully, but these errors were encountered: