From 3ccad85b0191dff662d92f9e6221b72a3a18bef5 Mon Sep 17 00:00:00 2001 From: Kapunahele Wong Date: Mon, 19 Apr 2021 16:17:09 -0400 Subject: [PATCH] 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 --- aio/content/errors/NG6999.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 aio/content/errors/NG6999.md diff --git a/aio/content/errors/NG6999.md b/aio/content/errors/NG6999.md new file mode 100644 index 0000000000..7d34205306 --- /dev/null +++ b/aio/content/errors/NG6999.md @@ -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.