I suppose that's because my app's dependency tree ends up including an older version on lodash, and once @hoodie/client does not specify lodash as a dependency (only as a devDependency) it ends up using that older version, that does not have that file...
I tried to create a node_modules dir inside node_mocules/@hoodie/client and copy a newer version of lodash there and the error has gone.
Also, looking at the places where defaultsDeep is used in this module, it seems to me it's actually not only a dev dependency..
I've writen a script that requires
@hoodie/client
, just as described in the readme, but it throwed an error on require:I suppose that's because my app's dependency tree ends up including an older version on lodash, and once
@hoodie/client
does not specify lodash as a dependency (only as a devDependency) it ends up using that older version, that does not have that file...I tried to create a
node_modules
dir insidenode_mocules/@hoodie/client
and copy a newer version of lodash there and the error has gone.Also, looking at the places where
defaultsDeep
is used in this module, it seems to me it's actually not only a dev dependency..