Asset and codegen imports resolve
Why it matters
A missing asset or codegen output fails the bundler the moment it tries to inline the file, so import logo from './logo.svg' with no logo.svg on disk hard-stops the build. AI tools commonly write import statements for images, stylesheets, and Prisma/GraphQL-Codegen outputs that were never created — the codegen case is especially subtle because the file exists locally after npm run dev but the CI step skips the generator and fails. Either way the deploy breaks.
Severity rationale
High because unresolved asset or codegen imports break the build in CI even when the local dev server runs clean.
Remediation
For each flagged asset, either create the file at the expected location or remove the import if it was hallucinated. For codegen outputs, wire the generator into the install and build lifecycle in package.json so CI produces the same files your dev machine does:
{
"scripts": {
"postinstall": "prisma generate",
"build": "prisma generate && next build"
}
}
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