Closed semihraifgurel closed 8 months ago
Seems like a bug in minimatch. What version do you have installed?
"eslint-plugin-jsx-a11y": "^6.7.1",
I asked about minimatch.
Was this ever solved? minimatch isn't a direct dependency of ours but I can see it's using 3.1.2
.
@poshiemaaat no, but thanks that helps. what is typeof require('minimatch')
in the repl?
@ljharb I'm not sure how to do that, actually. I can't seem to reproduce this at all locally; it's just failing in our pipeline. I have identical files locally to the best of my knowledge. I'm not sure how to "monkey-patch" the node_modules file in the pipeline to get the value of typeof require('minimatch')
here.
Pipeline is running node 20.10.0, ubuntu:22.04 btw!
I GOT IT
Run a npm dedupe
to force the minimatch package to get upgraded to v9.x. Pipeline was happy now. Oh my goodness.
Oh and you can see the list of minimatch packages installed due to all the dependency tree by running npm ls minimatch
. Thank me later.
npm explain minimatch
should give you more helpful output.
we require minimatch v3 here, so using v9 i would expect to break things :-/
Oooooh good point. I must have missed something too because I now see 3.1.2
again, but the pipeline is happy. Soooooooooooooooo 🤫 don't spook the pipeline.
Given that @semihraifgurel hasn't replied; yarn is known to be broken; and your issue was resolved, I'm going to close this, but will be happy to reopen if needed.
"eslint": "^8.38.0",