#Is there a way to use the flow state editor offline or locally?
1 messages · Page 1 of 1 (latest)
Yes, we offer a vscode extension. It is currently being updated to support xstate v5 https://stately.ai/docs/xstate-vscode-extension
The XState VS Code extension enhances the XState development experience by providing VS Code users with autocomplete, typegen, linting, and a visual editor inside VS Code.
When I attempt to use this I keep getting a message stating "could not find a machine at the current cursor" even when I put an empty createMachine({}) in the file. Is there a prerequisite I'm not aware of or an example I could look at?
If I click on the "Open Visual Editor" then I get "Error: could not register service worker: InvalidStateError: Failed to rigister a ServiceWorker: The document is in an inalid state"
I had to shut down the VSC editor a couple times and now it seems to load the editor
Sorry about that - try adding an ID to the createMachine