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

Type error since xstate@5.8 #4814

Closed
nightire opened this issue Mar 23, 2024 · 3 comments
Closed

Type error since xstate@5.8 #4814

nightire opened this issue Mar 23, 2024 · 3 comments
Assignees

Comments

@nightire
Copy link
Contributor

nightire commented Mar 23, 2024

Bug or feature request?

Bug report

Description:

There's a type error when using spawn since xstate@5.8, I've made a minimal reproduction to show and compare:

https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzjAnmApnAggYxtAJXQDMAxKCEAGjgGd0YBXMOAXzmIpDgCIAPWjACGMdDwBQAeklxQkWImRpMufFCJkuNekxbtOlXgOGiecaUoy0AXHACsAOgDsDgIzipAKk90A7sBgcAAtkCHtnNzgQIRQ4KHQAR0ZgeNpQuJJUkJgg4DSwIQBzTE9JDxwIADtBOGDgABsAEwBZITrKzABeOgZmAAoEVgBKBxx4kXRW9vQB8ThZRtseOqaeKnFh8qqagvjKmCncjrhunX6EOct0G0RL+Yr99D4YW0G4ITSkFcbVaFtf9QkciUAA8qAwEGItVyTUOwA6AD42Ot5qx1sNRuNRHCOrN5sBFrxduh9mtLg9RM9bAM6AVfJU2EMTkiLvN5vEmFAGay2fcYT88H9aUJ6X1vjj0EMUWzWJc0RshuIgA

(Bug) Expected result:

The same code works well with versions lower than v5.8.0

(Bug) Actual result:

The same code shows a bug with versions higher than or equal to v5.8.0

@davidkpiano
Copy link
Member

cc. @Andarist

@davidkpiano
Copy link
Member

The error seems to no longer exist for the latest version of XState 🎉

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

No branches or pull requests

3 participants