Uncaught TypeError: sortable is not a function
See original GitHub issueI’m opening this issue because:
I get the following error Uncaught TypeError: sortable is not a function
no matter how I attempt to import your library into my application. It worked perfectly with version 0.5.1 but upgrading to 0.9.2 breaks it.
supporting information:
- I use sortable version: 0.9.2
- I tested in the following browser (incl. versions): Chrome 65.0.3325.181
- Windows, OS X/macOS, or Linux?: macOS
How can the issue be reproduce the problem?
I am installing your package with npm, when I upgraded from 0.5.1 > 0.9.2 I am no longer able to import. I tried to import the following ways and none of them worked.
import 'html5sortable';
import sortable from 'html5sortable';
import 'node_modules/html5sortable/dist/html5sortable.js';
const sortable = require('node_modules/html5sortable/dist/html5sortable.js');
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10 (5 by maintainers)
Top Results From Across the Web
TypeError: $(...).sortable is not a function in jQuery | bobbyhadz
To solve the "$(...).sortable is not a function" jQuery error, make sure to load the jQuery library before loading the jQuery UI library....
Read more >jQuery .sortable is not a function - Stack Overflow
Show activity on this post. I figured it out. The page that I needed sortable for is loaded into a div within my...
Read more >Uncaught TypeError: jQuery.sortable is not a function
Hi, I get an Uncaught TypeError: jQuery.sortable is not a function when loading the users page in the admin area (/wp-admin/users.php).
Read more >Uncaught TypeError: $.sortable is not a function [#3191673]
The site reports an error in the console: Uncaught TypeError: $(...).find(...).sortable is not a function After Drupal core update (and ...
Read more >I'm getting the error 'TypeError: jQuery(...).sortable is not a ...
I'm getting the error "TypeError: jQuery(...).sortable is not a function in WordPress". What is a way to resolve this? All related (25). Recommended....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey, so it is working fine for me, I just tested with the
import sortable from 'node_modules/html5sortable/dist/html5sortable.es.js'
are you sure that you are not running into any race conditions?Can you somehow show more of your code? I guess this is not the only es6 package you are importing, correct? So others work fine?
yep! it’s fixed now! Thanks 😄