Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code-export for JavaScript XState v5 is broken #222

Closed
perbyhring opened this issue Feb 21, 2024 · 2 comments
Closed

Code-export for JavaScript XState v5 is broken #222

perbyhring opened this issue Feb 21, 2024 · 2 comments
Assignees

Comments

@perbyhring
Copy link

When i select JavaScript and XState v5 in the code-tab, I get the same code as for TypeScript-export.
It includes type-declarations and breaks if I preview the project using the Open in CodeSandbox-link

Here's a simple test which illustrates the issue:
https://stately.ai/registry/editor/c2950326-2b62-491a-b97a-493a69d73018?machineId=ea7362b4-7033-4e77-9c63-b6ad326b93a4


Studio version: 0.118.2

@davidkpiano
Copy link
Member

Thanks for the report; we'll investigate right away.

@kevinmaes
Copy link

@perbyhring Thanks for reporting this to us. We fixed this yesterday and I'm able to see the machine you shared here working in StackBlitz and CodeSandbox in both JS and TS. Let me know if you still experience any problem with this.

@kevinmaes kevinmaes self-assigned this Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants