question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

throwing exception if including via bower, but not using knockout

See original GitHub issue

I am using bower to include the library (using version 1.3.0, since 1.40 is currently broken).

When I loading my app, I get the following console error:

Uncaught TypeError: Cannot read property 'bindingHandlers' of undefined(anonymous function) 
@ knockout-sortable.js:155(anonymous function) 
@ knockout-sortable.js:12(anonymous function) 
@ knockout-sortable.js:14

Looking at the code, it is easy to tell that ‘ko’ is undefined. Is there a way to omit the inclusion of knockout-sortable.js if I am not using knockout?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

7reactions
alexshivecommented, Oct 22, 2015

Same issue with me. The best way is doing an override in your bower.json

"overrides": {
    "Sortable": {
      "main": [
        "Sortable.js",
        "ng-sortable.js"
      ]
    }
  }
0reactions
RubaXacommented, Jun 22, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

Apparent confusion with knockout.js dependency #21 - GitHub
The problem is that when I specify knockout and bower-install it, its .bower.json lacks a main property, and knockout (at least at the...
Read more >
knockoutjs throws "Unknown template value" when using ...
I have used yeoman to scalfold and bower to install the libraries. I'm not sure how to troubleshoot this as the error describes...
Read more >
Asynchronous error handling - Knockout.js
Knockout wraps internal asynchronous calls and looks for an optional ko.onError callback to execute, if an exception is encountered, before throwing the ...
Read more >
5 Knockout BOXING Combos I I Used THESE IN MY FIGHTS
I don't talk about my boxing career much but 90 percent of my fights ended ... Welcome to the official Nate Bower Fitness...
Read more >
A Beginners Guide to Package Manager Bower and Using ...
The plugin gulp-uglify is for JS only, therefore trying to compress CSS with it throws an error. Use gulp-minify instead! Shane – 4...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found