Unable to use snapshot.matches
because partialStatevalue: never
.
#5134
-
I have not been able to produce a minimal reproducible repo, which is why I'm asking in the discussion in case someone else has seen this before and can point me in the right direction. This react app https://stackblitz.com/edit/github-xgpyfx?file=src%2FfeedbackMachine.ts works and mirrors the general structure of my machine, i.e. there are parallel states at the root level. This example is using
In my local nextjs app when I try to use
There are no typescript errors on the machine definition. Has anyone seen this or known what painful mistake I might be making? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It's hard to tell if you don't share a repro case. To help out we need to see what exact code you have written |
Beta Was this translation helpful? Give feedback.
-
The issue was that I was using: // @ts-expect-error exactOptionalPropertyTypes To mask this bug #4613, which in turn masked another error which caused it not to generate the signature. I temporarily turned off |
Beta Was this translation helpful? Give feedback.
The issue was that I was using:
// @ts-expect-error exactOptionalPropertyTypes
To mask this bug #4613, which in turn masked another error which caused it not to generate the signature. I temporarily turned off
exactOptionalPropertyTypes
for the repo and found the error.