Uncaught TypeError: Cannot read properties of undefined (reading 'useTheme') issue

Tags: #<Tag:0x00007f51c1c41980> #<Tag:0x00007f51c1c41368>

Facing this issue when editing in Handsontable.

Uncaught TypeError: Cannot read properties of undefined (reading ‘useTheme’)
at Core. (chunk-AGJD6JH4.js?v=1b62ac7f:505:23)
at fastCall (chunk-J2HZTRRQ.js?v=1b62ac7f:5502:17)
at Hooks.run (chunk-J2HZTRRQ.js?v=1b62ac7f:9080:23)
at Core.runHooks (chunk-WFMBK5IF.js?v=1b62ac7f:12617:33)
at Core.useTheme (chunk-WFMBK5IF.js?v=1b62ac7f:12631:10)
at Core.updateSettings (chunk-WFMBK5IF.js?v=1b62ac7f:11841:18)
at @handsontable_react-wrapper.js?v=4f15555f:1477:67
at @handsontable_react-wrapper.js?v=4f15555f:112:14
at commitHookEffectListMount (chunk-PXNEZY3C.js?v=1b62ac7f:16936:34)
at commitPassiveMountOnFiber (chunk-PXNEZY3C.js?v=1b62ac7f:18184:19)

We are using “@handsontable/react”: “^15.0.1”,“@handsontable/react-wrapper”: “^15.0.0”, “handsontable”: “^15.0.1”.
Is the fix available in this version? I still face the same issue. Can you help me with the solution here?

Also, we tried to include the optional chaining change in the handsontableEditor.js that we have in node_modules, yet we face the same issue.

Hi @swethu1999

Thank you for sharing the issue report. The following issue is already solved and will be released possibly today within Handsontable 15.1.0. I will update this thread once we release the version.

Hi @swethu1999 I’m closing this issue as well. Of you’d find any issues with 15.1.0 please feel free to create new thread