xstate-viz icon indicating copy to clipboard operation
xstate-viz copied to clipboard

Uncaught error leading to "Visualizing machine" state in UI

Open simonflk opened this issue 4 years ago • 0 comments
trafficstars

Description

When trying to visualize my machine, the visualizer has a non-stop spinner with "Visualizing machine..."

There are several TypeErrors in the console relating to elk.bundled.js:

image

Expected Result

If the machine is valid, it should be visualized, else there should be an error presented to the user pointing to the bad machine config.

Actual Result

An uncaught error is displayed in the developer console, and the UI is stuck with a "Visualizing machine" spinner

Reproduction

https://stately.ai/viz/40a12f92-c794-47e7-a510-70975164a073

Un-comment either of the commented-out transitions to see the error

Additional context

Tested in Chrome 94 (Linux)

simonflk avatar Oct 21 '21 13:10 simonflk