Skip to content

Bug: VSCode visualizer doesn't resolve imported variables #490

@adrianbw

Description

@adrianbw

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:
without-imports

And with:
with-imports

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions