All package imports resolve to a known package
Why it matters
An unresolved bare package import fails the production build the moment the bundler reaches the file, and if you ship via a platform that pre-builds only the routes it needs, the failure may surface mid-deploy rather than in local dev. AI models hallucinate confident-looking names from their training data — react-icons/fi when only react-icons/fa is installed, lodash when the codebase uses lodash-es, or outright typos like expres. Each one is a reference-integrity failure the tsconfig and bundler cannot silently paper over.
Severity rationale
Critical because a single unresolved import breaks the build and blocks every deployment until it is fixed.
Remediation
Confirm each flagged import names a package that exists on npm before trusting it, then either install it or correct the specifier. Run the verification and install in one pass:
npm view react-icons
npm install react-icons
For workspace packages, declare the package in the root package.json workspaces field so resolution finds the sibling directory.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the Hallucinated References Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
Taxons
History
- 2026-04-18·v1.0.0·Initial import from ai-slop-hallucinations·automated