When a state chart includes imported values, the visualizer doesn't seem to be resolving them, which makes the visualizer fail. This makes it really hard to share code across the various parts of our system. Given that the visualizer is a huge selling point, this is probably going to make me recommend not using xstate.
Here's without imports:

And with:

I've created a reproduction of this issue here: https://github.com/adrianbw/xstate-vscode-import-problem.
When a state chart includes imported values, the visualizer doesn't seem to be resolving them, which makes the visualizer fail. This makes it really hard to share code across the various parts of our system. Given that the visualizer is a huge selling point, this is probably going to make me recommend not using xstate.
Here's without imports:

And with:

I've created a reproduction of this issue here: https://github.com/adrianbw/xstate-vscode-import-problem.