Closed donhcd closed 4 months ago
Possibly the version of minimatch installed is not the version syncpack needs.
Thanks @JamieMason ! we had a resolution
pinning minimatch
to a much older version than what syncpack
was requiring; removing that fixed the issue.
Great, glad it's all sorted 👍
Description
yarn run syncpack list-mismatches
and other commands all fail due toTypeError: (0 , minimatch_1.minimatch) is not a function
When I look at the code referenced by this, at
node_modules/syncpack/dist/guards/can-add-to-group.js
, I see this:~I don't understand why this code is in the package -- is
(0, minimatch_1.minimatch)
ever expected to be callable? Is there something I'm doing wrong here that is causing me to end up in this bad code path?~ it seems like the comma operator essentially means that the parenthesized expression evaluates to the value of the last expression in the set of commas, so the comma thing is actually fine, but the code is broken because it should be referencing the capitalminimatch_1.Minimatch
. If I update the two cases ofminimatch_1.minimatch
it to instead beminimatch_1.Minimatch
, I no longer get this errorSuggested Solution
change
minimatch_1.minimatch
tominimatch_1.Minimatch
?Help Needed