This is a migrated thread and some comments may be shown as answers.

deepEqual is not a function

6 Answers 374 Views
Wrappers for React
This is a migrated thread and some comments may be shown as answers.
Vincent
Top achievements
Rank 1
Vincent asked on 31 Jul 2018, 09:56 AM

Hello,

I dont know what this is or how can I fix it.

Uncaught TypeError: deepEqual is not a function
    at reconcileConfiguration (eval at hmrApply (..\node_modules\lodash-es\_objectToString.js:22), <anonymous>:27:10)
    at Grid.componentWillReceiveProps (eval at hmrApply (..\node_modules\lodash-es\_objectToString.js:22), <anonymous>:83:42)
    at callComponentWillReceiveProps (..\node_modules\lodash\lodash.js:6411)
    at updateClassInstance (..\node_modules\lodash\lodash.js:6603)
    at updateClassComponent (..\node_modules\lodash\lodash.js:8035)
    at beginWork (..\node_modules\lodash\lodash.js:8706)
    at performUnitOfWork (..\node_modules\lodash\lodash.js:10742)
    at workLoop (..\node_modules\lodash\lodash.js:10781)
    at HTMLUnknownElement.callCallback (..\..\..\..\..\Users\x\AppData\Roaming\npm\node_modules\parcel-bundler\node_modules\buffer\index.js:1790)
    at Object.invokeGuardedCallbackDev (..\..\..\..\..\Users\x\AppData\Roaming\npm\node_modules\parcel-bundler\node_modules\buffer\index.js:1790)

I don't know when it happen or why.
I tried to replicate the bug , but without any success.

It happen when render the Grid component of "@progress/kendo-grid-react-wrapper"

The error make reference to lodash, but I don't us it in the GridContainer component.

I have no clue what is happening.

Regards,
Vincent.

 

6 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 01 Aug 2018, 10:24 AM
Hello, Vincent,

This sounds like a similar issue reported to us before. There is a workaround also provided inside the report:

https://github.com/telerik/kendo-ui-core/issues/3893

This seems like an issue with the module loading and its most likely not connected directly related to the Kendo UI for React library.

Still, if the workaround does not work, please try to replicate the issue and we will further investigate the main reason for it.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Vincent
Top achievements
Rank 1
answered on 06 Aug 2018, 01:54 PM

Hello,

The Issue reside in the file.

In this file, the deepEqual is imported this way :

import * as deepEqual from 'deep-equal';

We just need to import deepEqual like this 

import deepEqual from 'deep-equal';

And that resolve the issue.
Or you can replace :

if (!deepEqual(oldConfiguration, newConfiguration, { strict: true })) {
   // some stuff
}

by

if (!deepEqual.default(oldConfiguration, newConfiguration, { strict: true })) {
    // some stuff
}

Like said in the workaround.

But the issue still remain in this file.

Regard.
VIncent

 

 

0
Vincent
Top achievements
Rank 1
answered on 06 Aug 2018, 01:56 PM
The file : "@progress\kendo-grid-react-wrapper\dist\es\grid\util.js"
0
Stefan
Telerik team
answered on 08 Aug 2018, 05:58 AM
Hello, Vincent,

Thank you for the clarification.

I will test if changing the import we not cause other issues and if not I will update the official file, so workaround like this will not be needed.

I also added Telerik point to your account for sharing this information with us, it is highly appreciated.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Stevan
Top achievements
Rank 1
Iron
Iron
answered on 23 Nov 2022, 03:30 PM
Has this issue been addressed?Getting this error in  "@progress/kendo-grid-react-wrapper": "2021.3.1112",
Konstantin Dikov
Telerik team
commented on 25 Nov 2022, 01:10 PM

Hi Stevan,

I have to say that the wrappers are deprecated and there is no active development for them.

With the above in mind, we would recommend that you either try the suggestions for resolving the issue in this post and the logged issuer or switch the to natice KendoReact components instead.

 

0
Stevan
Top achievements
Rank 1
Iron
Iron
answered on 14 Dec 2022, 06:25 AM | edited on 14 Dec 2022, 06:28 AM
Thank you for your answer Konstantin. I've tried mentioned fixes but they still throw same error. Do you recommend any document related to switching from kendo-grid-react-wrapper to kendo components?
Konstantin Dikov
Telerik team
commented on 15 Dec 2022, 09:43 PM

Hi Stevan,

The KendoReact components are entirely different product and we do not have documentation on how to switch from one to another. Nevertheless, you can use our documentation for the KendoReact components for the implementation and detailed information on the available functionality:

Hope this helps.

Tags
Wrappers for React
Asked by
Vincent
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Vincent
Top achievements
Rank 1
Stevan
Top achievements
Rank 1
Iron
Iron
Share this question
or