YuriGor / deepdash

eachDeep, filterDeep, findDeep, someDeep, omitDeep, pickDeep, keysDeep etc.. Tree traversal library written in Underscore/Lodash fashion
https://deepdash.io/
MIT License
272 stars 12 forks source link

"export 'default' (imported as 'deepdash') was not found in 'deepdash' #77

Closed GaborTorma closed 3 years ago

GaborTorma commented 3 years ago

After installing 5.3.2 a received this error message in client side:

"export 'default' (imported as 'deepdash') was not found in 'deepdash'

To downgrading to 5.3.0 is everything works.

YuriGor commented 3 years ago

Hi, thanks for the report! How to reproduce? I mean what is your setaup, is it deepdash or deepdash-es? Do you use webpack or whatever bundler?

GaborTorma commented 3 years ago

Reproduction code:

import lodash from 'lodash'
import deepdash from 'deepdash'

const _ = deepdash(lodash)
YuriGor commented 3 years ago

Ok, thank you, now I see. https://codesandbox.io/s/deepdash-issue77-lfjfy

YuriGor commented 3 years ago

Hi @GaborTorma ! Sorry for long fix) Could you please test v5.3.7? 'deepdash' package should work now both as commonjs and as es module.. 'deepdash-es' should also work but for imports only.

YuriGor commented 3 years ago

Ok, since I reproduced problem and now it's gone - closing this issue, lmk if something still wrong.