No phantom alias-as-package imports
Why it matters
This is a narrow AI confusion where the model treats a tsconfig alias prefix like @ as though it were a published package name, writing import { Foo } from '@' with no path after the prefix. The resolver cannot match it against node_modules/@ (which does not exist) or against the alias (which requires a path). The result is a module-not-found error at build time and a blank route if the bad import survives into a dynamic chunk.
Severity rationale
Low because the pattern is rare and the bundler error points directly at the offending line.
Remediation
Fix the specifier so it uses the alias with an actual path into your source tree. Open src/lib/util.ts and replace the bare alias with the full alias-plus-path form:
// Wrong: '@' is a prefix, not a module
import { Foo } from '@'
// Right: use the alias and the path to the file
import { Foo } from '@/lib/Foo'
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