Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

f.sortable not a function errors #47

Closed
dustinsmith1024 opened this issue Dec 20, 2016 · 3 comments
Closed

f.sortable not a function errors #47

dustinsmith1024 opened this issue Dec 20, 2016 · 3 comments

Comments

@dustinsmith1024
Copy link
Contributor

I keep getting these f.sortable is not a function errors. We have multiple JSON Editor's on our page and they all seem to throw the error.

Everything works, fine I would just like to clean up the console logs.

Any ideas?

angular.js:14324 TypeError: f.sortable is not a function
    at Object.link (http://localhost:8088/assets/vendor/angular-ui-sortable/sortable.min.js:1:2660)
    at http://localhost:8088/assets/vendor/angular/1.6.0/angular.js:1291:18
    at invokeLinkFn (http://localhost:8088/assets/vendor/angular/1.6.0/angular.js:10249:9)
    at nodeLinkFn (http://localhost:8088/assets/vendor/angular/1.6.0/angular.js:9638:11)
    at compositeLinkFn (http://localhost:8088/assets/vendor/angular/1.6.0/angular.js:8878:13)
    at nodeLinkFn (http://localhost:8088/assets/vendor/angular/1.6.0/angular.js:9632:11)
    at compositeLinkFn (http://localhost:8088/assets/vendor/angular/1.6.0/angular.js:8878:13)
    at publicLinkFn (http://localhost:8088/assets/vendor/angular/1.6.0/angular.js:8743:30)
    at Object.link (http://localhost:8088/assets/vendor/jsonEdit/v0.2.0/js/directives.js:253:29)
    at http://localhost:8088/assets/vendor/angular/1.6.0/angular.js:1291:18 <ol class="arrayOl ng-pristine ng-untouched ng-valid" ui-sortable="sortableOptions" ng-model="child">
@mb21
Copy link
Owner

mb21 commented Dec 20, 2016

have you included the following?

<script src="bower_components/json-edit/bower_components/angular-ui-sortable/sortable.min.js"></script>

@dustinsmith1024
Copy link
Contributor Author

Yea its there and loading fine. We are using require js to bring it in though.

@mb21
Copy link
Owner

mb21 commented Dec 20, 2016

you'll have to make sure that require js loads it before angular tries to use it...

@mb21 mb21 closed this as completed Jan 6, 2017
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

2 participants