Diagnostics reference
A diagnostic is a note the scan records when it sees something it can't fully follow, such as a component that arrives as a prop. The scan prints each warning, and counts the info ones only with --debug. The scan file's diagnostics[] array lists every diagnostic.
A use whose import points at a missing file, whose package isn't installed, or whose name nothing imports isn't a diagnostic. The scan keeps it in occurrences[] as an unmatched use, with the reason.
To work out why a component is missing from your results, start with Troubleshoot a scan. This page lists every code.
Fields
Every diagnostic has these two fields, plus the fields listed under its code:
| Field | Type | Meaning |
|---|---|---|
code | string | One of the codes below. |
severity | "warning" or "info" | warning: something you can usually fix, or a shape the scan doesn't support. info: a render the scan couldn't tie to a component, usually with nothing to fix. |
Every code except dependency-not-installed also has filePath, the file the diagnostic is about, relative to the repository root.
line and column start at 1, the same as in occurrences[].
Codes at a glance
code | Severity | Reported when |
|---|---|---|
dependency-not-installed | warning | A package your package.json declares isn't installed, and your code uses its components. |
file-not-parsed | warning | The scan couldn't read or parse a file it matched, so it skipped it. |
angular-compiler-missing | warning | The repo has Angular components, but @angular/compiler isn't installed, so their templates weren't read. |
angular-compiler-unsupported | warning | The installed @angular/compiler is older than Scout's template parser supports. |
angular-selector-ambiguous | warning | An element in an Angular template matches more than one component, so the use isn't counted. |
angular-not-in-scope | info | An element in an Angular template matches a component, but none of its matches are in the template's scope. |
angular-template-missing | warning | A component's templateUrl names a file the scan couldn't read. |
late-bound-render | info | A tag renders a component that arrives as a prop, a parameter or the result of a hook from a package. |
unresolved-reference | info | A tag names something the scan can't follow to a component, for any other reason. |
lazy-import-unsupported | warning | A component loaded with import() is written in a shape the scan can't follow. |
auto-import-manifest-missing | warning | A Nuxt app has no generated components file. |
auto-import-stale-entry | warning | The list of auto-imported components names a file that no longer exists. |
cycle-detected | warning | A package's re-exports loop back on themselves. |
chain-too-deep | warning | A package's re-exports pass through more than 32 files. |
Dependency code
dependency-not-installed
Severity: warning
A package that a package.json in the repo declares isn't installed, so the scan can't find its components. Every use of them is unmatched, with the reason package-not-installed. The scan reports one diagnostic per package, and only for a package it found in use.
| Field | Type | Meaning |
|---|---|---|
packageName | string | The package that isn't installed. |
occurrenceCount | number | How many uses of its components the scan couldn't tie to them. |
declaredIn | string | The package.json that declares the package, relative to the repository root. "" when the scan can't tell. |
This code has no filePath.
Warning: @acme/ui is listed in package.json but isn't installed, so 3 uses of it aren't matched to a component. Install your dependencies and scan again.
What to do: install the repo's dependencies with your package manager, then scan again. Until every package in dependencies and devDependencies is installed, scan refuses to upload:
Error: Couldn't upload the scan: @acme/ui is listed in package.json but isn't installed. Install your dependencies and try again.
A package listed only in peerDependencies or optionalDependencies doesn't stop it: the scan uploads with that package's uses unmatched.
File code
file-not-parsed
Severity: warning
The scan couldn't read a file it matched, or the file has a syntax error the parser can't recover from. The scan skips the file, so uses in it aren't counted. A file the scan can partly read gets a different warning: see A file has syntax errors.
| Field | Type | Meaning |
|---|---|---|
filePath | string | The skipped file. |
reason | string | couldn't read it, or couldn't parse it followed by the parser's message in brackets. |
Warning: Skipped src/Checkout.tsx: couldn't parse it (Unexpected token).
What to do: fix the syntax error, or for a file the scan couldn't read, check its permissions, then scan again. If the file isn't code you want counted, add it to exclude in the config.
Angular codes
angular-compiler-missing
Severity: warning
The scan found Angular components, but @angular/compiler isn't installed where your repo loads it. Scout reads templates with your repo's own copy of the compiler, so without it the components are counted but the components their templates use aren't. Install your dependencies and scan again.
| Field | Type | Meaning |
|---|---|---|
filePath | string | package.json. |
detail | string | The message the scan printed. |
angular-compiler-unsupported
Severity: warning
The repo's installed @angular/compiler is older than the Angular 19+ Scout's template parser supports. The scan keeps going with it, but a template read differently by an older major (or a feature it doesn't have yet) may be missed or misread.
| Field | Type | Meaning |
|---|---|---|
filePath | string | package.json. |
version | string | The installed compiler's major version. |
detail | string | The message the scan printed. |
Warning: The installed @angular/compiler is version 18, older than the Angular 19+ Scout supports, so its templates may be missed or misread. Upgrade @angular/compiler and scan again.
What to do: upgrade @angular/compiler (and the rest of your Angular dependencies) to 19 or later, then scan again.
angular-selector-ambiguous
Severity: warning
An element in a template matches the selector of more than one component the template can use, for example two components that both declare selector: 'app-button'. Angular rejects that when it compiles the template, so the scan counts the element for neither component. One class that a library exports under two names, such as NgIcon and NgIconComponent, is one component, not two.
| Field | Type | Meaning |
|---|---|---|
filePath | string | The template: the component's .ts file for an inline template, or its .html file. |
line, column | number | Where the element starts. |
tagName | string | The element's name. |
candidates | string[] | The matching components, each as its file or package, #, and its class name. |
What to do: rename one of the selectors, or remove one component from the template's imports or its module, so the element matches one component.
angular-not-in-scope
Severity: info
An element's selector matches one or more components, but none of them are in the template's scope — a standalone component's imports, or an NgModule's declarations/exports. Angular itself would reject this the same as an unknown element, so in a repo that builds, it's usually a sign the scan's own scope reading missed one. The element isn't counted as a use of any of them.
| Field | Type | Meaning |
|---|---|---|
filePath | string | The template: the component's .ts file for an inline template, or its .html file. |
line, column | number | Where the element starts. |
tagName | string | The element's name. |
candidates | string[] | The out-of-scope matches, each as its file or package, #, and its class name. |
What to do: check the owning component's imports (standalone) or its NgModule's declarations/exports for the component named in candidates, and add it if it's missing. If the scope is correct and Angular really would reject the element, there's nothing to fix: the scan already leaves it out of the results.
angular-template-missing
Severity: warning
A component's templateUrl names a file the scan couldn't read, so that component's template wasn't counted: none of the components or tags it uses.
| Field | Type | Meaning |
|---|---|---|
filePath | string | The component's own .ts file. |
templateUrl | string | The templateUrl as written. |
What to do: check the path is correct and the file exists at it, then scan again.
Render codes
A render is one tag in JSX or a Vue template that names a component, such as <Button> or <Card.Header>. When the tag's name is bound to something the scan can't follow to a component, the render isn't counted as a use and reports one of these codes instead, unless it is one of the renders that report nothing.
late-bound-render
Severity: info
The tag renders a value the component receives, such as a prop, a function parameter, a member read off one (<slots.Empty />) or the result of a hook from a package, so the scan can't tell which component it is. The render isn't counted for any component.
export function Row({ Icon }) {
return <Icon />; // late-bound-render: Icon
}
| Field | Type | Meaning |
|---|---|---|
line, column | number | Where the tag is. |
symbol | string | The tag's name up to the first dot. |
memberChain | array of strings | The rest of the tag's name. <slots.Empty> is "slots" and ["Empty"]. |
What to do: nothing; no config change affects this. Troubleshoot a scan shows how to list these renders.
unresolved-reference
Severity: info
The tag's name is imported or declared, but the scan can't follow it to a component. Common causes:
- The name holds the result of a function call (
const Tag = pickTag();). - The name reads a member assigned inside a function, such as
Card.Header = Header;in a setup function rather than whereCardis declared. - The import names something the file doesn't export, such as a misspelled name.
- The import points at a file that isn't code, such as
./logo.svg. - The name reaches the component through
export * froma file the scan didn't read: one yourincludepatterns don't match, oneexcludematches, or one that failed to parse. - The import passes through re-exports in your own code that loop back on themselves.
| Field | Type | Meaning |
|---|---|---|
line, column | number | Where the tag is. |
symbol | string | The tag's name up to the first dot. |
memberChain | array of strings | The rest of the tag's name. <Card.Header> is "Card" and ["Header"]. |
What to do: check the tag at line and column against the causes above. Fix a misspelled import in your code. The one you can fix from config is a file the scan didn't read: widen include or narrow exclude, then scan again.
lazy-import-unsupported
Severity: warning
The component is loaded with import(), for example through React.lazy or next/dynamic, in a shape the scan can't turn into a component. A common cause is a .then callback that does more than pick one export. The component is missing from the results at this tag.
| Field | Type | Meaning |
|---|---|---|
line, column | number | Where the tag is. |
specifier | string | The path passed to import(). |
detail | string | Why the scan gave up. |
Warning: src/App.tsx:24:6: couldn't tell which component import('./Panel') loads, so this use isn't counted.
What to do: where you can, reduce the .then callback to a single export pick, such as .then((m) => ({ default: m.Panel })).
Auto-import codes
auto-import-manifest-missing
Severity: warning
The package.json next to the config lists nuxt, but Nuxt's generated components file, .nuxt/components.d.ts (Nuxt 3) or .nuxt/types/components.d.ts (Nuxt 4), doesn't exist. Without it the scan can't find auto-imported components. A tag that uses one, such as <AppHeader />, is an unmatched use with the reason unbound-name. A kebab-case tag such as <app-header /> is counted instead as a web component with no package.
| Field | Type | Meaning |
|---|---|---|
filePath | string | The generated file the scan expected. |
detail | string | What's missing and how to fix it. |
Warning: This Nuxt app hasn't been prepared, so auto-imported components aren't counted. Run npx nuxt prepare and scan again.
What to do: run nuxt prepare (or any Nuxt dev or build command), then scan again. Until then, scan refuses to upload:
Error: Couldn't upload the scan: this Nuxt app hasn't been prepared. Run npx nuxt prepare and try again.
auto-import-stale-entry
Severity: warning
The list of auto-imported components, which Nuxt or unplugin-vue-components writes, names a component whose file no longer exists. The scan ignores that entry, so tags that use the component aren't tied to it, the same as for auto-import-manifest-missing.
| Field | Type | Meaning |
|---|---|---|
filePath | string | The components file the entry was read from. |
componentName | string | The component name the entry declares. |
target | string | The missing file, relative to the repository root. |
Warning: /home/dev/checkout/.nuxt/components.d.ts lists PromoBanner at components/PromoBanner.vue, which no longer exists. Regenerate that file (for Nuxt, run npx nuxt prepare) and scan again.
What to do: regenerate the file, then scan again. In a Nuxt app, run nuxt prepare. With unplugin-vue-components, build the app, for example with vite build: a build rewrites the file, while the dev server only adds to it.
Package re-export codes
These two describe files inside an installed package, not your code. While following the package's re-exports (export * from "./widgets.js") to the file that defines a component, the scan gave up. Every use of that component is unmatched, with the reason chain-bailed and the same code.
For both codes, filePath is the package file, such as node_modules/@acme/ui/index.js.
cycle-detected
Severity: warning
The re-exports came back to a file and export the scan had already visited, so it stopped.
| Field | Type | Meaning |
|---|---|---|
exportName | string | The export being followed when the loop closed. |
packageName | string, optional | The package that holds filePath. |
Warning: The re-exports of Widget in node_modules/@acme/loop/index.js loop back on themselves, so its uses aren't matched to a component.
What to do: nothing to fix in your repo. If the package is yours, remove the loop from its re-exports.
chain-too-deep
Severity: warning
The re-exports passed through more than 32 files without reaching the file that defines the component, so the scan stopped.
| Field | Type | Meaning |
|---|---|---|
exportName | string | The export being followed. |
depth | number | The limit reached. Always 32. |
packageName | string, optional | The package that holds filePath. |
Warning: Stopped following the re-exports of StarIcon after 32 files (at node_modules/@acme/icons/d32.js), so its uses aren't matched to a component.
What to do: nothing to fix in your repo. If the package is yours, shorten its re-export chain.
Renders that report nothing
These tags aren't counted as uses and report no diagnostic:
- A plain HTML or namespaced JSX tag, such as
<div>or<svg:rect>. - A JSX tag bound to a string, such as
const Tag = as ?? "span";then<Tag>. - A React context used as a provider or consumer, such as
<ThemeContext.Provider>. - A Vue built-in tag, such as
<Transition>. - A Vue template tag naming something the file's own script declares, such as
const LazyPanel = pickPanel();with<LazyPanel>or<lazy-panel>.