NullVoxPopuli / ember-statechart-component

Statecharts as components. No classes. Pure declarative state transitions.
MIT License
29 stars 6 forks source link

xstate version? #489

Open MichalBryxi opened 5 months ago

MichalBryxi commented 5 months ago

Current package.lock peerDependencies says:

    "xstate": "^4.32.1"

but the README says:

- XState >= 5

Isn't this a contradiction?

MichalBryxi commented 5 months ago

Coming here beacuse in a new app with "ember-statechart-component": "^6.1.2", I got:

 WARN  Issues with peer dependencies found
.
└─┬ ember-statechart-component 6.1.2
  └── ✕ unmet peer xstate@^4.32.1: found 5.10.0
MichalBryxi commented 5 months ago

To rendom bypassers: When I had xstate: 5.10.0 I was getting:

Uncaught Error: Attempted to load a component, but there wasn't a component manager associated with the definition. The definition was: StateMachine

Whenever I downgraded to recommended xstate: 4.32.1 the problem has disappeared and xstate started working for me.

NullVoxPopuli commented 5 months ago

Yeah, i'm mid-rewrite of this library to support xstate5, but i forgot to finish!

Xstate5 has a ton of breaking changes