Tabulator: Jquery with Jquery wrapper: typeError: Tabulator is not a constructor

Created on 18 Oct 2019  路  3Comments  路  Source: olifolkerd/tabulator

Describe the bug
Jquery and the jquery_wrapper , as described in http://tabulator.info/docs/4.4/jquery, is used.

Since version 4.3.0 a "TypeError: Tabulator is not a constructor" error is thrown when trying to display a simple table. The table itself is not shown anymore. Older versions work fine.

Tabulator Info

The bug is Reproducable in versions 4.3.0 and 4.4.3
NOT Reproducable in version 3.4.6 and 4.2.7

Tabel setup:

$("#example-table-1").tabulator({
columns:[
{title:"Name", field:"name"},
{title:"Age", field:"age"},
],
});

Working Example

https://codepen.io/edwinro/pen/zYYKepV

To Reproduce

Open the codepen link. The different versions can be commented / un-commented in the head section.

The table is not visible anymore in versions 4.3.0 and 4.4.3. The "TypeError: Tabulator is not a constructor" error is seen in the browser console .

Expected behavior
The table should be visible

Desktop :

  • OS:Windows
  • Browser: Firefox and Chrome
  • Version
    Chrome: Version 77.0.3865.120 (Official Build) (64-bit)
    Firefox :69.0.3 (64-bit)

Smartphone:
Not tested

Bug

All 3 comments

Hey @edwinro

Thanks for the headsup, i will investigate this further.

Cheers

Oli :)

Hey @edwinro

Looking into this further it looks like it was a regression in a PR i accepted a few months back. It managed to slip through, so apologies there.

I have pushed a fix for this to the 4.5 branch which will be released in the next few weeks.

In the mean time if you would like a functioning wrapper till the 4.5 release date, you can find the source for the fixed jQuery wrapper here

Cheers

Oli :)

Thank you @olifolkerd

Cheers,
Edwin

Was this page helpful?
0 / 5 - 0 ratings