question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'map' of undefined

See original GitHub issue
Overview of the issue

Compodoc is running until Process Pages , step, after continuing serveral pages, it stops by throwing TypeError: Cannot read property ‘map’ of undefined error. We have angular2 app with rxjs and ngrx.

Operating System, Node.js, npm, compodoc version(s)

Mac Os, Node 6.0.4, compodoc 0.40

Angular configuration, a package.json file in the root folder

{ “name”: "Test, “version”: “0.0.2”, “description”: “Test”, “scripts”: { “ng”: “ng”, “watch”: “ng serve -prod -sm -oh none --port 3001 --w=true”, “build”: “ng build -prod -aot -oh none”, “test”: “ng test -sm -sr -cc”, “posttest”: “npm run build”, “lint”: “ng lint”, “e2e”: “ng e2e”, “postbuild”: “cp -R deploy/* dist/ && npm run install-server”, “install-server”: “cd dist && npm install”, “start”: “npm run build && node dist/server”, “compodoc”: “./node_modules/.bin/compodoc -p ./tsconfig.json” }, “private”: true, “dependencies”: { “@angular/common”: “^2.4.0”, “@angular/compiler”: “^2.4.0”, “@angular/core”: “^2.4.0”, “@angular/forms”: “^2.4.0”, “@angular/http”: “^2.4.0”, “@angular/platform-browser”: “^2.4.0”, “@angular/platform-browser-dynamic”: “^2.4.0”, “@angular/router”: “^3.4.0”, “@ngrx/core”: “^1.2.0”, “@ngrx/store”: “^2.2.1”, “core-js”: “^2.4.1”, “d3”: “^4.7.0”, “intl”: “1.2.4”, “moment”: “^2.17.1”, “rxjs”: “^5.1.0”, “zone.js”: “^0.7.6” }, “devDependencies”: { “@angular/cli”: “1.0.0-rc.1”, “@angular/compiler-cli”: “^2.4.0”, “@types/d3”: “^4.5.0”, “@types/faker”: “^3.1.32”, “@types/jasmine”: “2.5.38”, “@types/node”: “~6.0.60”, “angular2-dependencies-graph”: “^1.0.0-alpha.12”, “codelyzer”: “~2.0.0”, “faker”: “^4.1.0”, “jasmine-core”: “~2.5.2”, “jasmine-spec-reporter”: “~3.2.0”, “karma”: “~1.4.1”, “karma-chrome-launcher”: “~2.0.0”, “karma-cli”: “~1.0.1”, “karma-coverage-istanbul-reporter”: “^0.2.0”, “karma-jasmine”: “~1.1.0”, “karma-jasmine-html-reporter”: “^0.2.2”, “karma-phantomjs-launcher”: “^1.0.2”, “karma-spec-reporter”: “0.0.30”, “phantomjs-prebuilt”: “^2.1.14”, “protractor”: “~5.1.0”, “ts-node”: “~2.0.0”, “tslint”: “~4.4.2”, “typedoc”: “^0.5.10”, “typescript”: “~2.0.0” } }

Compodoc installed globally or locally ?

Installed both globally and locally and tested with both

Motivation for or Use Case
Reproduce the error
Related issues
Suggest a Fix

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sumanalapaticommented, Apr 11, 2017

@dharsanav That actually worked , Thanks. @vogloblinsky I am closing the defect.

Thanks

0reactions
lock[bot]commented, Oct 1, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error : Cannot read property 'map' of undefined - Stack Overflow
The error "Cannot read property 'map' of undefined" will be encountered if there is an error ...
Read more >
How to Prevent the TypeError: Cannot Read Property Map of ...
As a result, the TypeError Cannot read property 'map' of undefined is very common and one of the first errors that developers will...
Read more >
Fix the "Cannot read property 'map' of undefined" Error in React
The variable you are trying to map over is undefined . It will probably eventually be an array, but due to the asynchronous...
Read more >
Cannot read properties of undefined (reading 'map') in React
The "TypeError: Cannot read properties of undefined (reading 'map')" occurs when we call the map() method on an undefined value, most often when...
Read more >
React - Cannot read property 'map' of undefined - debuggr.io
When we get such an error, we are probably getting the value in an asynchronous way. We should provide an initial value for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found