deepEqual is not a function

5 posts, 0 answers
  1. Vincent
    Vincent avatar
    15 posts
    Member since:
    Mar 2014

    Posted 31 Jul 2018 Link to this post

    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.

     

  2. Stefan
    Admin
    Stefan avatar
    2893 posts

    Posted 01 Aug 2018 Link to this post

    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
  3. Vincent
    Vincent avatar
    15 posts
    Member since:
    Mar 2014

    Posted 06 Aug 2018 in reply to Stefan Link to this post

    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

     

     

  4. Vincent
    Vincent avatar
    15 posts
    Member since:
    Mar 2014

    Posted 06 Aug 2018 in reply to Vincent Link to this post

    The file : "@progress\kendo-grid-react-wrapper\dist\es\grid\util.js"
  5. Stefan
    Admin
    Stefan avatar
    2893 posts

    Posted 08 Aug 2018 Link to this post

    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
Back to Top