Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
steveoh opened this issue Apr 4, 2024 · 2 comments
Open

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

steveoh opened this issue Apr 4, 2024 · 2 comments
Labels

Comments

@steveoh
Copy link

steveoh commented Apr 4, 2024

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

@steveoh steveoh added the bug label Apr 4, 2024
@davidkpiano
Copy link
Member

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

@steveoh
Copy link
Author

steveoh commented Apr 5, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants