Closed MichalBryxi closed 2 years ago
Not the same error, but I get ERROR Property assignment expected
when adding an action{}
section. No line numbers, no specific area where the error came from. More frustrating to use the viz than helpful.
There should be more tests with 'bad' machines to ensure better feedback.
@MichalBryxi I've prepared a fix for this specific issue: https://github.com/statelyai/xstate-viz/pull/332
@tomByrer agreed, as part of this PR I've added a stub of the test suite for this sort of stuff. Could you create a PR with a sample failing input?
Description
When I put following code into https://stately.ai/viz
The page breaks with following error:
Application error: a client-side exception has occurred (see the browser console for more information).
The problem is that even after full page reload I can't edit the code and I'm effectively in a dead-end, because I can't fix the problem that caused the issue.
Expected Result
The page should not completely blow up when having issue with rendering the visualiser. The editor and the visualizer should be two independent things. If one blows up, the other one can function normally.
Actual Result
Whole page blows up.
Reproduction
State machine that makes the page blow up is attached above.
Additional context
N/A