Describe the bug
Error when triggering the DatePicker
To Reproduce
After upgrading react and react-dom to 18.3.1, I upgraded react-datepicker to 5.0.0, and I get the following error when triggering the DatePicker:
TypeError: Cannot read properties of undefined (reading 'isRTL')
Errors from 5.0.0 on
Expected behavior
No error?
Screenshots
DatePicker instantiation:
Desktop (please complete the following information):
Describe the bug Error when triggering the DatePicker
To Reproduce After upgrading
react
andreact-dom
to 18.3.1, I upgradedreact-datepicker
to 5.0.0, and I get the following error when triggering the DatePicker:TypeError: Cannot read properties of undefined (reading 'isRTL')
Errors from 5.0.0 on
Expected behavior No error?
Screenshots![Screenshot 2024-05-20 at 9 36 36 PM](https://github.com/Hacker0x01/react-datepicker/assets/9886123/3ed9b030-f0dc-4c9a-97ea-432d12d531b4)
DatePicker instantiation:![Screenshot 2024-05-20 at 9 36 42 PM](https://github.com/Hacker0x01/react-datepicker/assets/9886123/f1c2493d-cc85-4844-84a2-096370cf2c8e)
Desktop (please complete the following information):
Additional context
package.json