edy / redux-persist-transform-filter

Filter transformator for redux-persist
MIT License
190 stars 21 forks source link

Lodash function imports cause errors #39

Closed AregShahbazian closed 1 year ago

AregShahbazian commented 1 year ago

I'm using "redux-persist-transform-filter": "^0.0.21", and getting these 4 errors:

ERROR in ./node_modules/redux-persist-transform-filter/dist/index.js 28:14-38 Module not found: Error: Can't resolve 'lodash/pickby'

ERROR in ./node_modules/redux-persist-transform-filter/dist/index.js 32:15-40 Module not found: Error: Can't resolve 'lodash/isempty'

ERROR in ./node_modules/redux-persist-transform-filter/dist/index.js 36:13-36 Module not found: Error: Can't resolve 'lodash/forin'

ERROR in ./node_modules/redux-persist-transform-filter/dist/index.js 40:17-44 Module not found: Error: Can't resolve 'lodash/clonedeep'

Looking at the code it looks like these four import statements should use camelcase, like: import pickBy from 'lodash/pickBy' instead of import pickBy from 'lodash/pickby', etc...

meftunca commented 1 year ago

Same issue

edy commented 1 year ago

fixed in 0.0.22

AregShahbazian commented 1 year ago

Thank you!