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.

Uncaught TypeError: sortable is not a function

See original GitHub issue

I’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.

  1. import 'html5sortable';
  2. import sortable from 'html5sortable';
  3. import 'node_modules/html5sortable/dist/html5sortable.js';
  4. const sortable = require('node_modules/html5sortable/dist/html5sortable.js');

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
lukasoppermanncommented, May 7, 2018

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?

1reaction
gilbertoalbinocommented, Jul 24, 2021

yep! it’s fixed now! Thanks 😄

Read more comments on GitHub >

github_iconTop 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 >

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