Files
angular__angular/aio/content/errors/NG8003.md
Joe Martin (Crowdstaffing) 61894570f1 docs: improve markdown (#45590)
improve markdown for documentation. Duplicate of #45325 that targets 13.3.x.

PR Close #45590
2022-04-11 22:35:01 +00:00

1.2 KiB

@name Missing Reference Target @category compiler @videoUrl https://www.youtube.com/embed/fUSAg4kp2WQ @shortDescription No directive found with export

@description

Angular can't find a directive with {{ PLACEHOLDER }} export name. This is common with a missing import or a missing exportAs on a directive.

This is the compiler equivalent of a common runtime error NG0301: Export Not Found.

@debugging

Use the string name of the export not found to trace the templates or modules using this export.

Ensure that all dependencies are properly imported and declared in our Modules. For example, if the export not found is ngForm, we will need to import FormsModule and declare it in our list of imports in *.module.ts to resolve the missing export error.

import { FormsModule } from '@angular/forms';

@NgModule({ … imports: [ FormsModule, …

If you recently added an import, you will need to restart your server to see these changes.

@reviewed 2022-02-28