Open unlight opened 5 years ago
glob
has a dependency of minimatch
: https://github.com/isaacs/node-glob/blob/master/package.json#L23
I just tried, it works with npm and yarn, It maybe a bug of pnpm
It seems there is a solution: https://pnpm.js.org/docs/en/faq.html#solution-3
That's the point. You must not use modules indirectly. What if next minor version of glob
will remove minimatch and replace by nanomatch, micromatch, etc.
But you still will reference to minimatch.
pnpm clearly says that it is bug of package.
In most cases it means that one of the dependencies require packages not declared in package.json. It is a common mistake caused by flat node_modules. If this happens, this is an error in the dependency and the dependency should be fixed. That might take time though, so pnpm supports workarounds to make the buggy packages work.
v2.0.4 should fix this
Version(if relevant): 2.0.2
Environment(if relevant):
pnpm package manager
Expected:
No error
Actual:
Code: