[BUG] <rejected> TypeError: Cannot read property 'forEach' of undefined
See original GitHub issueOverview of the issue
When run npm run compodoc
, error occured:
Operating System, Node.js, npm, compodoc version(s)
Windows 10 Node.js: v 8.9.4 npm: 5.6.0 Compodoc: 1.0.5 using Angular-CLI 1.5.0 Angular: 5.0.3
Angular configuration, a package.json
file in the root folder
{
"name": "tmk-web",
"scripts": {
"version": "0.0.0",
"license": "MIT",
"ng": "ng",
"start": "ng serve --open",
"start:prod": "ng serve --open --environment=prod",
"start:jit": "ng serve --open --sourcemap --extractCss",
"start:hmr": "ng serve --open --hmr -e=dev",
"build": "ng build --prod --aot",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"versions": " ng -v && tsc -v",
"genicons": "webfont ./src/assets/icons/web-*.svg -f WebIcons -d ./src/assets/icons -s ./src -t scss -c icon -p /assets/icons/",
"publish": "git checkout deploy && git merge master && git push && git checkout master",
"compodoc": "./node_modules/.bin/compodoc -p src/tsconfig.app.json"
},
"webfont": {
"normalize": true
},
"private": true,
"dependencies": {
"@angular-devkit/core": "0.0.28",
"@angular-redux/form": "^6.6.0",
"@angular-redux/router": "^6.3.1",
"@angular-redux/store": "^6.6.0",
"@angular/animations": "5.0.3",
"@angular/cdk": "5.0.0-rc.2",
"@angular/common": "5.0.3",
"@angular/compiler": "5.0.3",
"@angular/core": "5.0.3",
"@angular/forms": "5.0.3",
"@angular/http": "5.0.3",
"@angular/material": "5.0.0-rc.2",
"@angular/platform-browser": "5.0.3",
"@angular/platform-browser-dynamic": "5.0.3",
"@angular/router": "5.0.3",
"accounting": "^0.4.1",
"angular-pipes": "^6.5.3",
"angular2-text-mask": "^8.0.4",
"core-js": "^2.5.1",
"d3": "^4.10.0",
"jquery": "^3.2.1",
"lodash": "^4.17.4",
"moment": "^2.19.1",
"ng-simple-storage": "^1.0.1",
"ngx-malihu-scrollbar": "^1.2.2",
"redux": "^3.7.2",
"redux-logger": "^3.0.6",
"rxjs": "^5.5.2",
"select2-component": "^3.1.7",
"signalr": "2.2.2",
"zone.js": "^0.8.18"
},
"devDependencies": {
"@angular/cli": "1.5.0",
"@angular/compiler-cli": "5.0.3",
"@angular/language-service": "5.0.3",
"@angularclass/hmr": "^2.1.3",
"@compodoc/compodoc": "^1.0.5",
"@types/accounting": "^0.4.1",
"@types/d3": "^4.12.0",
"@types/geojson": "^1.0.6",
"@types/jasmine": "^2.6.0",
"@types/jquery": "^3.2.8",
"@types/lodash": "^4.14.69",
"@types/mcustomscrollbar": "^2.8.32",
"@types/node": "8.0.14",
"@types/redux-logger": "^3.0.5",
"@types/signalr": "^2.2.34",
"codelyzer": "4.1.0",
"karma-chrome-launcher": "^2.1.1",
"karma-coverage-istanbul-reporter": "^1.3.0",
"karma-jasmine": "^1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"redux-devtools-extension": "^2.13.2",
"ts-node": "^3.3.0",
"tslint": "5.9.1",
"typescript": "~2.4.0"
}
}
Compodoc installed globally or locally ?
Both
Motivation for or Use Case
Reproduce the error
Related issues
Suggest a Fix
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
TypeError: Cannot read property 'forEach' of Undefined in JS
The "Cannot read property 'forEach' of undefined" error occurs when the forEach() method is called on an undefined value. To solve the error,...
Read more >Cannot read property 'forEach' of undefined error JavaScript
this is my javascript code but whenever I try to run it, it throws 'Error: TypeError: Cannot read property 'forEach' of undefined' Can ......
Read more >Error: Cannot read property 'forEach' of undefined #249 - GitHub
Migration unsuccessful Unexpected token C in JSON at position 0 Error: Cannot read property 'forEach' of undefined TypeError: Cannot read ...
Read more >Data validations error “cannot read property 'foreach' of ...
The error is telling you that obj is null, i.e. it has not been set to a valid reference. 1 solution.
Read more >TypeError: Cannot read property 'forEach' of undefined - General
Can someone help me, I get this and it won't let me start the server.
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 FreeTop 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
Top GitHub Comments
No, i have prepared in a proof of concept all i need to do that recursively for routes definitions, and also child routes etc…
Coming soon i hop this weekend or next week.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.