TypeError: Cannot read properties of undefined (reading 'getSnapshot') #4964
Unanswered
blessingoraz
asked this question in
Q&A
Replies: 1 comment
-
Are you using TypeScript? The Please see the migration guide for more information: https://stately.ai/docs/migration#use-actor-logic-creators-for-invokesrc-instead-of-functions |
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
-
I'm migrating Xstate from version 4 to 5, and I ran into this error.
Here is what I have in package.json:
"dependencies": {
"@xstate/react": "^4.0.1",
"xstate": "^5.1.0"
}
My chart looks like this:
Machine looks like this:
I noticed that the invoke function is not being called, and I can't seem to see the logs in my service.
Beta Was this translation helpful? Give feedback.
All reactions