mariocasciaro / object-path-immutable

Modify deep object properties without modifying the original object (immutability). Works great with React and Redux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Got error: "isPlainObject is not a function" in version >3.0.0

quertenmont opened this issue · comments

Hello,

In recent version of the package
I get the error

TypeError: isPlainObject is not a function
    at deepMerge (index.js:103)

When I retrograde the version to 3.0.0, everything works fine.
Would be nice to correct this.

All the best,
Loic

@quertenmont, same problem :(

Hi folks, what environment are you using? Node or Browser? are you using any bundler/compiler?

Hi folks, what environment are you using? Node or Browser? are you using any bundler/compiler?

Thanks for response! I'm using Create React App. Bug occurs when I test app in browser in dev mode. But while I test code that uses object-path-immutable with Jest (Node) - all works nice

Should be fixed in 4.0.0