You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My JS file:
import ('../node_modules/tablesort/src/sorts/tablesort.number');
var Tablesort = require('../node_modules/tablesort/src/tablesort');
new Tablesort(document.getElementById('table-id'));
I get this error: Uncaught (in promise) ReferenceError: Tablesort is not defined at eval (tablesort.number.js?ea31:16) at eval (tablesort.number.js?ea31:26) at Object.XC2G (0.js:10) at __webpack_require__ (runtime.js:791) at fn (runtime.js:151) at fn.t (runtime.js:195)
The text was updated successfully, but these errors were encountered:
👋 I'm a little confused why you are using both import and require in your JS but my guess is because tablesort.number is defined before the main package, it's not found.
My JS file:
import ('../node_modules/tablesort/src/sorts/tablesort.number');
var Tablesort = require('../node_modules/tablesort/src/tablesort');
new Tablesort(document.getElementById('table-id'));
I get this error:
Uncaught (in promise) ReferenceError: Tablesort is not defined at eval (tablesort.number.js?ea31:16) at eval (tablesort.number.js?ea31:26) at Object.XC2G (0.js:10) at __webpack_require__ (runtime.js:791) at fn (runtime.js:151) at fn.t (runtime.js:195)
The text was updated successfully, but these errors were encountered: