Completed
Last Updated: 05 Jun 2023 14:33 by ADMIN
Daniel
Created on: 13 Mar 2023 22:32
Category: KendoReact
Type: Bug Report
1
Rich Text Editor table throws an error when selecting multiple columns

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"

4 comments
ADMIN
Konstantin Dikov
Posted on: 05 Jun 2023 14:33

Hello,

A solution with yarn is described in the following KB article:

Regards,
Konstantin Dikov
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.
ADMIN
Filip
Posted on: 28 Mar 2023 12:21

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.

Daniel
Posted on: 21 Mar 2023 16:56

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.

ADMIN
Vessy
Posted on: 20 Mar 2023 15:04

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/.

Attached Files: