statelyai / xstate-tools

Public monorepo for XState tooling
183 stars 40 forks source link

Typegen breaks when a state or a tag contains single quotes #116

Closed Devessier closed 2 years ago

Devessier commented 2 years ago

First, I want to say I admire the work you did on Typegen, it's a really amazing feature! I've been trying to use it on machines that contain single quotes in states and tags and it made typegen break.

The error occurred with Stately VSCode extension, and with the CLI, which gave me more information about the reason of the fail:

CleanShot 2022-03-20 at 12 41 03@2x

I made a reproduction for both states and tags: https://github.com/Devessier/xstate-typegen-quotes-issue-repro.

Let me know if you need more information. Have a nice day!

Andarist commented 2 years ago

Thanks for the report and the repro case. It seems like a straightforward fix - gonna handle it asap.