๐ knip crashes due to invalid dependency version of picocolors 1.0.0
Closed this issue ยท 1 comments
chrztoph commented
Prerequisites
- I'm using the latest version
- I've read the relevant documentation
- I've searched for existing issues
- I've checked the list of known issues
- I've read the issue reproduction guide
Reproduction url
Sorry no time right now, but if really needed let me know.
Reproduction access
- I've made sure the reproduction is publicly accessible
Description of the issue
Hey,
if a version of picocolors
lower than 1.1.0
is installed knip crashes with the following:
Unlisted dependencies (2)
file:///<redacted>/node_modules/knip/dist/reporters/symbols.js:14
return [dim(parts[0]), bright(issue.symbol), dim(rest)].join('');
TypeError: bright is not a function
The problem is that bright colors in picocolors were added with version 1.1.0
(see https://github.com/alexeyraspopov/picocolors/releases/tag/v1.1.0).
This can happen due the dependency version of picocolors
being set to ^1.0.0
(see
knip/packages/knip/package.json
Line 69 in cfcdcbe
We should bump it to ^1.1.0
.