Skip to content

Setting target to an item that is not mounted in the DOM yet causes issues in production #1149

@KevinZiadeh

Description

@KevinZiadeh

🐛 Bug Report

I have a Tour that will interact with an element inside a MUI dialog.
This element is not mounted by default, therefore I get Warning: Steps are not valid ... error component stack in the dev console.
The tour works correctly in both development and production environment.

BUT in production mode, using React with CRA(yes outdated), when I refresh the page that contains the Tour(even if the tour will not run), I get a blank screen and the Error: Uncaught RangeError: Maximum call stack size exceeded at ju.toString in the deep-equal package. A Hard reload does not cause this issue.

Expected behavior

Same as in development environment, not crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions