Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk3 min

Angular NG8113: How to Fix Unused Standalone Imports

NG8113 flags a component import that its template does not use. Remove the unused entry—or configure Angular to suppress or elevate the diagnostic.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

NG8113 means an entry in a component’s imports array is not used by that component’s template. The usual fix is to remove the unused entry from the component metadata and, if no longer needed elsewhere, remove its TypeScript import too. Angular also lets you suppress this diagnostic through angularCompilerOptions, but that leaves the entry in place.

What NG8113 checks

NG8113 is Angular’s extended diagnostic named unusedStandaloneImports. It reports a component-level import that the component’s template does not use. The imports property in a component’s metadata makes directives, components, and pipes available to that template; standalone components can also include existing NgModules. The check concerns entries in this component-level list, not every TypeScript import in the file. See Angular’s NG8113 documentation and Component API.

As an Amazon Associate I earn from qualifying purchases.

For example, if a component’s metadata lists both UsedDirective and UnusedPipe, but its template uses only UsedDirective, NG8113 identifies UnusedPipe as unused. Angular’s documented fix is to remove that entry. The diagnostic page says unused imports “add unnecessary noise to your code and can increase your compilation time.” It gives no project-specific measurement, so this is a qualitative rationale, not a promise of a particular build-time or bundle-size improvement.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How to fix NG8113

  1. Locate the component. Find the @Component metadata containing the reported imports array.
  2. Check the template. Look for actual use of each listed component, directive, and pipe in the inline template or the file named by templateUrl.
  3. Remove the unused entry. Delete the symbol from the component’s imports array. If its TypeScript import statement is no longer referenced elsewhere in the file, remove that too.
  4. Run your normal compiler check. Rebuild or run the project’s usual Angular compiler check and confirm that NG8113 is gone.

If the symbol appears to be needed, verify that you are checking the template belonging to the component whose metadata contains the array. The diagnostic is about template use by that component; an import being used in another component does not make it used here.

How to disable or change the NG8113 warning

Angular extended diagnostics are warnings by default. You can set an individual check to warning, error, or suppress. To stop Angular from emitting NG8113, add or update this configuration in the project’s tsconfig:

{
  "angularCompilerOptions": {
    "extendedDiagnostics": {
      "checks": {
        "unusedStandaloneImports": "suppress"
      }
    }
  }
}

Use error instead if you want unused standalone imports to fail compilation; warning keeps the diagnostic non-blocking. Angular documents these options in its extended diagnostics configuration and the NG8113 entry. Suppression changes whether the compiler reports the issue; it does not remove the unused metadata entry.

How CommonModule relates to NG8113

A standalone component can import individual directives and pipes, or an NgModule such as CommonModule. Angular’s CommonModule-to-standalone migration shows replacing a component-level CommonModule entry with the minimal imports used by its template, such as AsyncPipe, JsonPipe, and NgIf.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

That migration and NG8113 are related but distinct. The migration helps narrow a broad module import to specific standalone dependencies; NG8113 checks whether an entry in the component’s imports list is used by that template. Angular recommends standalone components for new code, while its migration guidance also covers existing NgModule-based applications. See Angular’s NgModules guide.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Version and tooling notes

Angular’s official documentation accessed on October 7, 2026, does not state the minimum Angular version that introduced NG8113. If version compatibility matters, check the documentation matching the Angular version installed in your project rather than assuming a version boundary.

Angular’s roadmap marks its broader initiative to streamline standalone imports with the Language Service as completed in Q4 2024. That roadmap item is not a claim that NG8113 automatically edits source files; the documented resolution is to remove the unused import yourself.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.