Error encountered after upgrading xstate to v5.9.1: TypeError: this.logic.getInitialSnapshot is not a function #4824
Unanswered
pubudithajayasekara
asked this question in
Q&A
Replies: 3 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. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Are you using TypeScript? Are there any TypeScript errors when passing the logic into |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey, did you managed to solve this issue? I'm encountering the same problem moving from 4 to 5 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
I recently upgraded xstate from version 4.38.3 to version 5.9.1 following the migration guide provided here. However, upon making the necessary changes, I encountered the following error:
TypeError: this.logic.getInitialSnapshot is not a function (it is undefined), js engine: hermes
This error leads to the raise-182bb5c9.cjs.js file in the xstate node module, specifically in the _initState method.
Beta Was this translation helpful? Give feedback.
All reactions