tempusdominus / bootstrap-4

Tempus Dominus Bootstrap 4 Datetime Picker
https://getdatepicker.com/5-4/
MIT License
611 stars 239 forks source link

Conflicting with other packages. #359

Closed pedrogglima closed 1 year ago

pedrogglima commented 3 years ago

Hi. I have a Rails 6 project and this library was conflicting with another package that I had installed. For some reason, the functionality remote: true from rails_ujs package (that use JQuery for this function) was not working. After I remove this library it started to work normally again. I will put here the packages versions and the trace stack for the error generate by this library. I say conflict because this library was working fine on development, but on production, where I compile all js files to one unique file, I got this error.

The trace stack

Uncaught TypeError: t is not a function
  at tempusdominus-bootstrap-4.js:31
  at Object.<anonymous> (tempusdominus-bootstrap-4.js:30)
  at Object.<anonymous> (application-2e0b3414c2caaddca3bc.js:1)
  at n (bootstrap:19)
  at Module.<anonymous> (application-2e0b3414c2caaddca3bc.js:1)
  at n (bootstrap:19)
  at bootstrap:83
  at application-2e0b3414c2caaddca3bc.js:1