Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using XState extension in VSCode to edit state machine but the code is not updating accordingly

I am using the Stately's state machine library called XState in my React(Typescript) project.

There is an official extension called "XState" for VSCode, so, I installed it.

After that, I wrote the initial code to create my state machine, then from the VSCode I can open the "visual editor" by clicking this:

enter image description here

It opens the XState visual editor in VSCode, but when I update the state machine visual diagram, the typescript code is not updating accordingly:

enter image description here

Then I go to the extension & noticed there are some error logs:

enter image description here

I tried rebooting VSCode, but that doesn't help. Anybody encountered this issue? How to solve it so that I can see live updating on code while I am editing the state machine diagram in editor?

like image 935
user842225 Avatar asked Oct 29 '25 02:10

user842225


1 Answers

Try adding an id to the machine first. Sorry, this is a tricky bug on our end!

like image 91
David Khourshid Avatar answered Oct 31 '25 20:10

David Khourshid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!