<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅
Oh hi there! 😄
To expedite issue processing please search open and closed issues before submitting a new one. Existing issues often contain information about workarounds, resolution, or progress updates.
🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->
The issue is caused by package @angular/core
Yes, the previous version in which this bug was not present was: 8
Running ng build/serve after updating to angular 9 produces a number of errors, all surrounding an export in angular/core
<!--
If StackBlitz is not suitable for reproduction of your issue, please create a minimal GitHub repository with the reproduction of the issue.
A good way to make a minimal reproduction is to create a new app via ng new repro-app
and add the minimum possible code to show the problem.
Share the link to the repo below along with step-by-step instructions to reproduce the problem, as well as expected and actual behavior.
Issues that don't have enough info and can't be reproduced will be closed.
You can read more about issue submission guidelines here: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-submitting-an-issue -->
<pre><code> <!-- If the issue is accompanied by an exception or an error, please share it below: --> <!-- ✍️--> ../node_modules/@angular/common/common.d.ts:180:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
180 static ɵfac: ɵngcc0.ɵɵFactoryDef<CurrencyPipe>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:340:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
340 static ɵfac: ɵngcc0.ɵɵFactoryDef<DatePipe>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:399:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
399 static ɵfac: ɵngcc0.ɵɵFactoryDef<DecimalPipe>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:434:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
434 static ɵfac: ɵngcc0.ɵɵFactoryDef<DeprecatedCurrencyPipe>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:506:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
506 static ɵfac: ɵngcc0.ɵɵFactoryDef<DeprecatedDatePipe>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:540:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
540 static ɵfac: ɵngcc0.ɵɵFactoryDef<DeprecatedDecimalPipe>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:579:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
579 static ɵfac: ɵngcc0.ɵɵFactoryDef<DeprecatedPercentPipe>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:1042:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
1042 static ɵfac: ɵngcc0.ɵɵFactoryDef<HashLocationStrategy>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:1073:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
1073 static ɵfac: ɵngcc0.ɵɵFactoryDef<I18nPluralPipe>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:1104:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
1104 static ɵfac: ɵngcc0.ɵɵFactoryDef<I18nSelectPipe>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:1153:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
1153 static ɵfac: ɵngcc0.ɵɵFactoryDef<JsonPipe>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:1202:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
1202 static ɵfac: ɵngcc0.ɵɵFactoryDef<KeyValuePipe>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:1350:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
1350 static ɵfac: ɵngcc0.ɵɵFactoryDef<Location>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:1428:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
1428 static ɵfac: ɵngcc0.ɵɵFactoryDef<LowerCasePipe>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:1468:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
1468 static ɵfac: ɵngcc0.ɵɵFactoryDef<NgClass>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:1564:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
1564 static ɵfac: ɵngcc0.ɵɵFactoryDef<NgComponentOutlet>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:1720:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
1720 static ɵfac: ɵngcc0.ɵɵFactoryDef<NgForOf<any>>; ~~~~~~~~~~~~ ../node_modules/@angular/common/common.d.ts:1912:25 - error TS2694: Namespace '"/home/reece/sites/portal-front-end/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
1912 static ɵfac: ɵngcc0.ɵɵFactoryDef<NgIf>;
</code></pre>
Angular Version:
<pre><code>
<!-- run ng version
and paste output below -->
<!-- ✍️-->
Angular CLI: 9.0.1
Node: 13.8.0
OS: linux x64
Angular: 9.0.0 ... animations, cdk, common, compiler, compiler-cli, core, forms ... language-service, material, platform-browser ... platform-browser-dynamic, router, upgrade Ivy Workspace: Yes
@angular-devkit/architect 0.900.1 @angular-devkit/build-angular 0.900.1 @angular-devkit/build-optimizer 0.900.1 @angular-devkit/build-webpack 0.900.1 @angular-devkit/core 9.0.1 @angular-devkit/schematics 9.0.1 @angular/cli 9.0.1 @ngtools/webpack 9.0.1 @nguniversal/common 9.0.0 @nguniversal/express-engine 9.0.0 @schematics/angular 9.0.1 @schematics/update 0.900.1 rxjs 6.5.4 typescript 3.7.5 webpack 4.41.2
</code></pre>
Anything else relevant? <!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. -->
<!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->
If you are using 8v like me , juste delete node_modules
and then run npm i
that make the trick for me.