Missing estraverse
dependency #120
Description
Hi, I tried this project today and at first glance it seems to work very well. However, when I tried installing the dependencies of the example project with pnpm, I got this error on compilation:
/src/index.js
Line 0: Parsing error: Cannot find module 'estraverse'
However, there is no such line in examples/src/index.js
.
This probably means one of the (deep) dependencies is missing estraverse
as a dependency in their package.json
, but they're relying on it being installed in the node_modules
folder because it's a dependency of one of their dependencies. According to npm
's specification, only direct dependencies have to be installed in the node_modules
folder, which is exactly what pnpm
does.
Sadly, the error message doesn't give me any idea of what package might be missing the estraverse
dependency, which is where I hope someone can help out.
For anyone who runs into this and doesn't know, the issue can be resolved by using pnpm
's --shamefully-flatten
flag.