Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.3k
Error encountered after upgrading xstate to v5.9.1: TypeError: this.logic.getInitialSnapshot is not a function#4824
-
Description:
This error leads to the raise-182bb5c9.cjs.js file in the xstate node module, specifically in the _initState method. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 5 comments
-
Please always try to share a repro case in a runnable form - either by providing a git repository to clone or a codesandbox. OSS maintainers usually can't afford the time to set up the repro, even if exact steps are given. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Are you using TypeScript? Are there any TypeScript errors when passing the logic into |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hey, did you managed to solve this issue? I'm encountering the same problem moving from 4 to 5 |
BetaWas this translation helpful?Give feedback.
All reactions
-
@pubudithajayasekara I believe that this is a duplicate ofthis issue. |
BetaWas this translation helpful?Give feedback.
All reactions
-
This can be helpful for the fix. I found the root issue:https://medium.com/@constructordog/fixing-getinitialsnapshot-is-not-a-function-in-xstate-v5-after-your-llm-betrayed-you-and-the-de62b0b134ec |
BetaWas this translation helpful?Give feedback.