-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: moment is not a function at new DateRangePicker2. How do I resolve it? #261
Comments
from https://github.com/skratchdot/react-bootstrap-daterangepicker#getting-started
|
I have the same issue using Vite.js. Installing the needed peer dependencies doesn't help. If there's any ideas, please, help. |
try including moment via a script tag:
from: here is an example of it working with vite: |
It worked for me! Thank you so much! |
Try the below code by adding in entry file : -
There is no need to add any script tag if library is already installed . |
Isn't Working |
Thanks!! |
Hi @Jay-zalavadia |
I'm also using Laravel v.10 and Vite, same problem |
The text was updated successfully, but these errors were encountered: