You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to fix a couple of errors with the given config before I could see this error. When I did that I managed to minimize the repro case to just this:
I had to expand the minimal reproduction out slightly to include the states to limit the errors only to those related to the service config, however I can confirm that this minimal repro does represent the issue I am encountering.
Description
The VScode extension generates an incorrect definition for a machine that uses a guarded transition for the
invoke.done
event from an invoked service.Given the below machine, which was modeled with the vscode extension:
The following type error is given:
Changing the "else" portion of the guarded transition manually from
"Done"
to{ target: "Done"}
resolves the issue.Environment
XState VSCode version:
v1.11.0
Xstate version:
4.32.1
The text was updated successfully, but these errors were encountered: