Skip to content

Issue Types

Knip reports the following types of issues:

TitleDescriptionKey
Unused filesUnable to find a ref to this filefiles
Unused dependenciesUnable to find a ref to this dependency🔧dependencies
Unused devDependenciesUnable to find a ref to this devDependency🔧dependencies
Referenced optional peerDependenciesOptional peer dependency is referenceddependencies
Unlisted dependenciesUsed dependencies not listed in package.jsonunlisted
Unlisted binariesBinaries from deps not listed in package.jsonbinaries
Unresolved importsUnable to resolve this (import) specifierunresolved
Unused exportsUnable to find a ref to this export🔧exports
Unused exports in namespacesUnable to find direct a ref to this exportnsExports
Unused exported typesUnable to find a ref to this exported type🔧types
Unused exported types in namespacesUnable to find direct a ref to this exportnsTypes
Unused exported enum membersUnable to find a ref to this enum memberenumMembers
Unused exported class membersUnable to find a ref to this class memberclassMembers
Duplicate exportsThis is exported more than onceduplicates
  • ref = reference

When an issue type has zero issues, it is not shown.

🔧 Issue types are auto-fixable.

The devDependencies and optionalPeerDependencies are covered in a single key for all dependencies. In strict production mode, devDependencies are not included.

The types issue type includes enum, interface and type exports.

ISC License © 2024 Lars Kappert