Reputation: 459
I've got an Aurelia project based on the jspm skeleton. I'm using both toastr and this datepicker custom attribute https://www.danyow.net/jquery-ui-datepicker-with-aurelia/.
Each works individually. However, when I include both in my project I get the following error:
datePicker.js:12 Uncaught (in promise) TypeError: $(...).datepicker is not a function
Any ideas on how to get these to work together?
Upvotes: 1
Views: 221
Reputation: 459
As Miroslav indicated above, the error resulted from conflicting jquery dependencies in my config.js file. Some references were to npm and some were to github. In my case, I changed all to reference github.
I changed references from:
"jquery": "npm:[email protected]"
to
"jquery": >"github:components/[email protected]"
Upvotes: 0