statelyai / xstate

Actor-based state management & orchestration for complex app logic.
https://stately.ai/docs
MIT License
26.53k stars 1.22k forks source link

Bug: @xstate/inspect has 4x peer dependency #4827

Open steveoh opened 3 months ago

steveoh commented 3 months ago

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: test-app@1.0.0
npm ERR! Found: xstate@5.9.1
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/inspect@0.8.0
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

davidkpiano commented 3 months ago

You should use @statelyai/inspect instead of @xstate/inspect: github.com/statelyai/inspect

steveoh commented 3 months ago

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?