Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Uncaught ReferenceError: ko is not defined #43

Open
digitlimit opened this issue May 21, 2018 · 5 comments
Open

Uncaught ReferenceError: ko is not defined #43

digitlimit opened this issue May 21, 2018 · 5 comments

Comments

@digitlimit
Copy link

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
Copy link
Contributor

hi @digitlimit! currently the daterangepicker does require knockout.

@andreiraductin
Copy link

thanks!

@hellodit
Copy link

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
Copy link

i am facing similar issue.

@dreamalligator
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants