-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Assertion Failed: [ember-light-table] table must be an instance of Table. Ember 3.11 and above #726
Comments
Above Ember 3.5 you need to use the V2 beta version. I think the latest is v2.0.0-beta.4 and you no longer use const table = Table.create({ columns: this.columns, rows: this.tableRows }); |
when I use above Table.create ()am getting the below error if I try with new Table () then Error: Assertion Failed: [ember-light-table] table must be an instance of Table. |
@surekha199 What version of Ember are you using? |
ember-cli: 3.4.4 but I am unable to use new Table() as well |
Please see #701 For full details of the change in the API. Whilst new documentation hasn't been pushed to git pages yet, the dummy app is successfully running ember 3.16 and Ember Light Table with plenty of usage examples. You can find the most relevant file here: https://github.com/offirgolan/ember-light-table/blob/2-x/tests/dummy/app/mixins/table-common.js#L29 |
I tried the above but still having same issue.
With this below way , table is getting rendered with 100s of same error message in the console |
So 1,4 and 5 won't work as that's not the way you create a table. What value is this.columns ? Are you sure it's an array? You will need to pass your table instance into the template too. |
am trying to have static columns and rows and these are arrays as below and I have not created mixin/model, and taken everything in component. columns: [{ Yes passed table instance to template |
Is there any component other than light table to implement expanded-rows in table , so that it will be helpful for me to give try. |
am facing same issue in using ember-light-table with ember-octane.I just want to display some static data into table. So instead of creating Mixin, I am writing code directly into component file but i have face this error: Below is my component file: import Component from "@glimmer/component"; export default class LeadsLeadTable extends Component { isLoading = computed.oneWay("fetchRecords.isRunning"); model = null; init() {
} @(task(function* () { @action onColumnClick(column) { columns = computed(function () { @action |
@haseebwaqas A copule things:
import Component from '@ember/component';
import classic from 'ember-classic-decorator';
// more imports
@classic
export default class LeadsLeadTableComponent extends Component {
// some code
let table = Table.create(this.get('columns'), this.get('model'), {
enableSync: this.get('enableSync')
});
// more code
} These changes eliminated the |
@maxwondercorn : |
Tried upgrading an application to Ember 3.11 and seeing this Error: Assertion Failed: [ember-light-table] table must be an instance of Table error. In
https://github.com/offirgolan/ember-light-table/blob/master/addon/components/light-table.js
init method, the table is null.The text was updated successfully, but these errors were encountered: