xstate
xstate copied to clipboard
Bug: @xstate/inspect has 4x peer dependency
XState version
XState version 5
Description
the currently release xstate inspect package cannot be installed
Expected result
it should not have conflicts when installing the latest packages
Actual result
$ npm install xstate react
added 4 packages, and audited 5 packages in 649ms
$ npm install @xstate/react
added 3 packages, and audited 8 packages in 1s
$ npm install @xstate/inspect
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/xstate
npm ERR! xstate@"^5.9.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer xstate@"^4.37.0" from @xstate/[email protected]
npm ERR! node_modules/@xstate/inspect
npm ERR! @xstate/inspect@"*" from the root project
Reproduction
the reproducable example is above
Additional context
5.9.1
You should use @statelyai/inspect instead of @xstate/inspect: github.com/statelyai/inspect
Ok how would i use that with create machine? The readme shows all actor usage.
It could be nice to put a note in the other package that it's been replaced in version 5 to help folks upgrade.
It wasn't in the migration blog post right?