Import slickgrid-react to React javascript project #194
-
Hi, I am using SlickGrid React with JavaScript. I keep receiving this error: Uncaught runtime errors: For the error: Cannot set properties of null (setting 'Sortable1692657172012'), it's from sortable.esm.js:
I defined the columns like this: columnsDef: Column[] = [ Could you please help? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I ran into this same error. Although it didn't matter if I was in TypeScript or JavaScript project. I was stumped for days. What I had to do was disable React.StrictMode. I assume it is related to React 18 running side effects twice in development. One of those times it was passing in null for my columnDefinitions of my SlickGrid. Any thoughts on that @ghiscoding ? I'm just glad I found a workaround. |
Beta Was this translation helpful? Give feedback.
I ran into this same error. Although it didn't matter if I was in TypeScript or JavaScript project. I was stumped for days. What I had to do was disable React.StrictMode. I assume it is related to React 18 running side effects twice in development. One of those times it was passing in null for my columnDefinitions of my SlickGrid.
Any thoughts on that @ghiscoding ? I'm just glad I found a workaround.