-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
fix: vite moment error #2307
base: master
Are you sure you want to change the base?
fix: vite moment error #2307
Conversation
@dangrossman Please take a look. |
Would be very happy to see this PR approved soon @dangrossman, it would fix our builds and prevent us from looking for alternatives... |
You're waiting on a 11 year old library with no updates in years to fix your build process? Merge the PR in your copy, or find an alternative. I have no idea what Vite is and have no way of knowing if this PR will break others' builds. Someone put require('moment') in there on purpose, now it's being changed to require('moment/moment'). That must break something, or it'd always have been moment/moment. I know moment isn't changing APIs as they archived that project years ago. |
At least set the project to archived then, to show visitors that its not under maintenance anymore. |
You have a point there @dangrossman. But it's just that I love the simplicity and integration with Bootstrap in this picker so a big #h5yr for that (and I so want to keep using this). Now, JS is not my native language, but from what I've read here it shouldn't break anything, and sounds like a comparable issue:
|
I was able to fix the error by defining an alias
|
Does this still work. Still getting the same error after this |
It fixed issue when used in vite it shows localData is not a function error.
Also includes fix from #2228