Cannot read property 'kind' of undefined after upgrade to "@angular-devkit/build-angular": "^0.1001.0",
See original GitHub issue🐞 Bug report
Command (mark with an x
)
- build
- serve
Is this a regression?
Yes, the previous version in which this bug was not present was: Prev version: 0.1000.7 Current Version: ^0.1001.0
Description
I’m using angular CLI project with multiple projects. After I upgrade the package json with the latest >> “@angular-devkit/build-angular”: “^0.1001.0”, I start to get this error: ERROR in Cannot read property ‘kind’ of undefined
For this command:
ng build project-name --prod --aot --source-map --build-optimizer
When I downgrade to 0.1000.7 it back to work
🔬 Minimal Reproduction
🔥 Exception or Error
ERROR in Cannot read property 'kind' of undefined
🌍 Your Environment
Angular CLI: 10.1.0
Node: 12.3.1
OS: darwin x64
Angular: 10.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker
Ivy Workspace: Yes
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.901.12
@angular-devkit/build-angular 0.1001.0
@angular-devkit/build-optimizer 0.901.12
@angular-devkit/build-webpack 0.901.12
@angular-devkit/core 10.1.0
@angular-devkit/schematics 10.1.0
@angular-devkit/schematics-cli 0.901.12
@angular/cdk 10.2.0
@angular/material 10.2.0
@ngtools/webpack 9.1.12
@nguniversal/common 10.0.2
@nguniversal/express-engine 10.0.2
@schematics/angular 10.1.0
@schematics/schematics 0.901.12
@schematics/update 0.1001.0
rxjs 6.6.2
typescript 3.9.7
webpack 4.42.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:11
Top Results From Across the Web
TypeError: Cannot read property 'kind' of undefined at ...
This is an issue related to the Angular devkit and build optimizer and has to do with version mismatches. I ran into this...
Read more >519 Versions - @angular-devkit/build-angular - npm
Start using @angular-devkit/build-angular in your project by running ... TypeScript icon, indicating that this package has built-in type ...
Read more >angular/angular-cli - Gitter
node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js): TypeError: Cannot read property 'kind' of undefined at ...
Read more >[Angular, Jest] TypeError: Cannot read property 'ɵprov ... - Qiita
More than 1 year has passed since last update. ... TypeError: Cannot read property 'ɵprov' of undefined. または. Copied!
Read more >@angular-devkit/build-angular: Versions | Openbase
Full version history for @angular-devkit/build-angular including change logs. ... Internally the Angular CLI now always set the TypeScript target to ES2022 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ofirrifo, without debugging it’s hard to understand and find the root cause of the problem, though typically removing the lock file and node_modules does solve a number of issues.
Same cause as https://github.com/angular/angular-cli/issues/18615 where the presence of an outdate version
@angular-builders/custom-webpack
is causing issues during module hosting.Kindly update
@angular-builders/custom-webpack
to the latest stable version.