Update to 10.1.0-next.7 throws error ERROR in Cannot read property 'kind' of undefined
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: 10.1.0-next.5Description
After upgrading to 10.1.0-next.7 from version 10.1.0-next.5, the ng build
and ng serve
commands are now throwing below error:
ERROR in Cannot read property 'kind' of undefined
Below is my package.json
{
"name": "myApp",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"ng-high-memory": "node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng",
"start": "echo hello && node --max_old_space_size=10000 ./node_modules/@angular/cli/bin/ng serve",
"build": "node --max_old_space_size=10000 ./node_modules/@angular/cli/bin/ng build --configuration=production --project=MyProjectl",
"build:ssr_ignore_dash_dash_watch_from_AngularCliBuilderDotCS": "ng run MyProject:server:production ",
"build:ssr": "npm run build:ssr_ignore_dash_dash_watch_from_AngularCliBuilderDotCS",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "10.1.0-next.8",
"@angular/cdk": "10.1.3",
"@angular/common": "10.1.0-next.8",
"@angular/compiler": "10.1.0-next.8",
"@angular/core": "10.1.0-next.8",
"@angular/fire": "6.0.2",
"@angular/forms": "10.1.0-next.8",
"@angular/google-maps": "10.1.3",
"@angular/material": "10.1.3",
"@angular/platform-browser": "10.1.0-next.8",
"@angular/platform-browser-dynamic": "10.1.0-next.8",
"@angular/platform-server": "10.1.0-next.8",
"@angular/pwa": "0.1001.0-next.5",
"@angular/router": "10.1.0-next.8",
"@angular/service-worker": "10.1.0-next.8",
"@ngx-lite/json-ld": "0.6.2",
"@ngx-pwa/local-storage": "10.0.1",
"@swimlane/ngx-charts": "14.0.0",
"@trademe/ng-defer-load": "8.2.1",
"aspnet-prerendering": "3.0.1",
"core-js": "3.6.5",
"d3-shape": "1.3.7",
"dayjs": "^1.8.29",
"file-saver": "2.0.2",
"firebase": "7.17.1",
"hammerjs": "2.0.8",
"moment": "2.27.0",
"ng2-adsense": "8.0.1",
"ng2-ckeditor": "1.2.9",
"ngx-build-plus": "10.1.1",
"ngx-img-cropper": "9.0.1",
"ngx-infinite-scroll": "9.0.0",
"preboot": "^7.0.0",
"rxjs": "~6.6.0",
"screenfull": "5.0.2",
"smoothscroll-polyfill": "0.4.4",
"tslib": "^2.0.0",
"web-animations-js": "^2.3.2",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-builders/custom-webpack": "10.0.0",
"@angular-devkit/build-angular": "0.1001.0-next.7",
"@angular/cli": "10.1.0-next.7",
"@angular/compiler-cli": "10.1.0-next.8",
"@angular/language-service": "10.1.0-next.8",
"@types/jasmine": "~3.5.11",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^14.0.24",
"@types/webappsec-credential-management": "^0.5.1",
"codelyzer": "^6.0.0",
"concat": "3.0.0",
"guess-parser": "0.4.19",
"guess-webpack": "0.4.19",
"html-minifier": "^4.0.0",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~5.1.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.3",
"karma-jasmine": "~3.3.0",
"karma-jasmine-html-reporter": "^1.4.2",
"protractor": "~7.0.0",
"ts-node": "~8.10.2",
"tslint": "~6.1.0",
"typescript": "^3.9.7",
"webpack-bundle-analyzer": "^3.3.2"
}
}
🔥 Exception or Error
ERROR in Cannot read property 'kind' of undefined
🌍 Your Environment
Included package.json file contents.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10
Top Results From Across the Web
Angular cli build prod: TypeError: Cannot read property 'kind ...
I have encountered the same bug as the question, and upon doing an upgrade to TypeScript 3.7, I'm unable to build my angular...
Read more >cannot read properties of undefined (reading 'map') angular
I'm trying to use the eslint command on my angular project in the terminal to check a typescript component for errors. I'm getting...
Read more >Update to Angular 11 Version - Angular Wiki
0-next but none is installed. You must install peer dependencies yourself. npm WARN codelyzer@5.2.2 requires a peer of @angular/compiler@>=2.3 ...
Read more >Production Build Errors with smart-webcomponents-angular ...
Following is the error getting while doing prod build. ERROR in . ... TypeError: Cannot read property 'kind' of undefined
Read more >angular-cli - Cannot read property 'kind' of undefined - iTecNote
if I build with not --prod I do not get any error. Full error: ERROR in TypeError: Cannot read property 'kind' of undefined...
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
Got it, thanks
On Wed, 26 Aug 2020 at 16:04, Naveed Ahmed notifications@github.com wrote:
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.