Current Behaviour
When a table is created in the text editor and multiple columns are selected an error is thrown.
Errors:
TypeError: Cannot read properties of undefined (reading 'localsInner')
TypeError: Cannot read properties of undefined (reading 'eq')
Expected Behaviour
When a table is created in the text editor and multiple columns are selected an error must not appear and the user must be able to merge or split the cells.
MInimal Reproduction
I'm providing a reproduction from Kendo React code examples.
https://stackblitz.com/edit/react-su15wr?file=app%2Fmain.tsx
Package
"@progress/kendo-react-editor": "^5.11.0"
Hello,
A solution with yarn is described in the following KB article:
Regards,
Konstantin Dikov
Progress Telerik
Hi, Daniel,
Vessy is currently out of the office and will be handling the ticket.
I downloaded the app and installed it via yarn and the error was indeed reproducible, installing the packages via NPM works as expected.
It seems that using NPM instead is the only workaround at this moment.
Regards,
Filip
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hi, Vessy,
I after a long debugging in our app I found the root cause of the problem. It is related to yarn package manager. It seems that editor dependencies are not properly resolved with yarn. I've tested the app you've provided and if I use npm to install the packages is working as expected, but if you use yarn I have the same errors described above. Even I've create a brand new app with vite + react and the problem is reproducible the same way.
Hello, Daniel,
This happens because Stackblitz sometimes cannot resolve the Editor's internal dependencies correctly and install multiple versions of a single package, hence the thrown error.
I tested the example locally and it ran without any error. For convenience, I am attaching my test project to this reply so you can test it as well.
Regards,
Vessy
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.