sensortower / daterangepicker

ARCHIVED - Please find details in https://github.com/sensortower/overseer/issues/33139. Date range picker component for the modern web
https://sensortower.github.io/daterangepicker/
MIT License
302 stars 105 forks source link

Uncaught ReferenceError: ko is not defined #43

Open digitlimit opened 6 years ago

digitlimit commented 6 years ago

I love this plugin. However I can't get it to work. I use Jquery. Must I include knockoutjs on the page? Hope not because I don't wish to have knockout included in my project. Kindly advise

daterangepicker.js:122 Uncaught ReferenceError: ko is not defined
at daterangepicker.js:122
at daterangepicker.js:1207
dreamalligator commented 6 years ago

hi @digitlimit! currently the daterangepicker does require knockout.

andreiraductin commented 5 years ago

thanks!

hellodit commented 3 years ago

How can @digitlimit solve this problem? I've the same error to

first error daterangepicker.min.js:8 Uncaught ReferenceError: ko is not defined at daterangepicker.min.js:8 at daterangepicker.min.js:8 (anonymous) @ daterangepicker.min.js:8 (anonymous) @ daterangepicker.min.js:8

Second error daterangepicker.min.js:8 Uncaught TypeError: s is not a constructor at HTMLInputElement.<anonymous> (daterangepicker.min.js:8) at Function.each (jquery.min.js:2) at r.fn.init.each (jquery.min.js:2) at r.fn.init.$.fn.daterangepicker (daterangepicker.min.js:8) at visitor:727

1pooverma commented 1 year ago

i am facing similar issue.

dreamalligator commented 1 year ago

Hi @hellodit, try adding https://github.com/knockout/knockout as a dependency.