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

Tags: #<Tag:0x00007f51c5d35220> #<Tag:0x00007f51c5d35090>

When I edit a value in handsontable, I sometimes get this error. Can you give me a solution as soon as possible?

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

chunk-PXNEZY3C.js?v=4e08bec6:14052 The above error occurred in the component:

Hi @swethu1999

I think that we already have this issue fixed within https://github.com/handsontable/handsontable/pull/11325. The next version s planned for tomorrow. Here https://jsfiddle.net/xp6hyd2a/ is a demo with the latest build. Please provide your setting and check if the issue still exists.

Hi @aleksadra_budnik

Thank you for responding so quick. We are using “@handsontable/react”: “^15.0.1”,
@handsontable/react-wrapper”: “^15.0.0”, “handsontable”: “^15.0.1”,
Is this 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.

Fix will be provided today within Handsontable v15.1.0 (minor release). I will update this thread as soon as this happens.

Hi @swethu1999

We just released v15.1.0 where this issue is fixed. Thank you again for reporting.