Cannot read properties of undefined (reading 'highlight')

Tags: #<Tag:0x00007efc64c53ed0>

For a long time (I believe well over a year) we’ve been seeing the error below in our monitoring of client-side exceptions. In fact, we’ve seen many thousands of this exception each month. Yet we never get any support calls, so we’ve always believed it has something to do with tear down of the grid or some other aspect which users don’t notice. However, since we see many thousands of these exceptions on a monthly basis, I thought I’d finally reach out and ask you to put in a bit of defensive code before attempting to access the highlight field in the response to hot.getSelectedRangeLast()?

We know exactly where the error occurs:

Thanks.

Hi @dhaber

Can you please explain a little more about the error itself? It would be best if you could prepare a code demo in which we can reproduce the problem.

@dhaber

We were able to reproduce the issue, and the fix is on the way. It will be available with the next release of Handsontable 14.6. I’ll update you once it’s released.

Nice! Thank you.

Hi @dhaber

The day is today, and we have just released Handsontable v14.6.0, where this issue is fixed.

Thank you for your contribution.

ps. be sure to check the changelog https://handsontable.com/docs/react-data-grid/changelog/ and give our new API a go https://github.com/handsontable/handsontable/pull/11189

1 Like