In production, the React Joyride tour is not functioning correctly, causing the following error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '0').
To Reproduce
Steps to reproduce the behavior:
Implement a tour using React Joyride in a separate tour.tsx component.
Import and use the tour.tsx component in other components as needed.
Build the application for production.
Deploy and run the production build.
Expected behavior
The React Joyride tour should function as expected in production, similar to its behavior in the development environment, without throwing any errors.
🐛 Bug Report
In production, the React Joyride tour is not functioning correctly, causing the following error:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '0')
.To Reproduce
Steps to reproduce the behavior:
tour.tsx
component.tour.tsx
component in other components as needed.Expected behavior
The React Joyride tour should function as expected in production, similar to its behavior in the development environment, without throwing any errors.
Link to repl or repo (highly encouraged)
Locally Build - Loom video