Hello beautiful people!
In some machines, the typegen is getting a little bit confused and generates a bunch of actions that are not being called in my machine file at all.
missingImplementations: {
actions:
| '1lgb5h0'
| '8uuvv'
| 'actions2'
| 'cg2je3'
| 'dlsrm7'
| 'meiv8l'
| 'nn0u9h';
delays: never;
guards: never;
services: never;
};
As a result, I always get the Expected 2 arguments, but got 1. type error when invoking the machines with useMachine. I couldn't reproduce it in Codesandbox yet as it doesn't happen to all my machines, only some of them but does anyone know what could be causing this and how to fix it?
Using the newest version of xstate, xstate-tools, the vscode extension and TypeScript.