docs: add error page for NG6999 (#41708)

Adds page for NG6999 error for VE builds that attempt
to consume an Ivy-compiled library.
Will go here: https://angular.io/errors/NG6999

PR Close #41708
This commit is contained in:
Kapunahele Wong 2021-04-19 16:17:09 -04:00 committed by Jessica Janiuk
parent 42a64f8676
commit 3ccad85b01
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
@name Invalid metadata
@category compiler
@shortDescription Invalid @NgModule() metadata
@description
This error represents the import or export of an `@NgModule()` that doesn't have valid metadata.
@debugging
The library might have been processed with `ngcc`.
If this is the case, try removing and reinstalling `node_modules`.
This error is likely due to the library being published for Angular Ivy, which cannot be used in this View Engine application.
If that is not the case then it might be a View Engine based library that was converted to Ivy by ngcc during a postinstall step.
Check the peer dependencies to ensure that you're using a compatible version of Angular.