webpro-nl/knip

๐Ÿ› knip crashes due to invalid dependency version of picocolors 1.0.0

Closed this issue ยท 1 comments

Prerequisites

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

"picocolors": "^1.0.0",
).

We should bump it to ^1.1.0.

Fixed in #821