react-docgen-typescript
react-docgen-typescript copied to clipboard
Cannot read property 'parameters' of undefined
The type on this function assumes the param callSignature can never be undefined. https://github.com/styleguidist/react-docgen-typescript/blob/f8556be6beeafb95d0afec4be27daebd12a24626/src/parser.ts#L526-L527
But you can see in the implementation of getCallSignature its grabbing the 0th index out of this array. If the array is empty it will be undefined. https://github.com/styleguidist/react-docgen-typescript/blob/f8556be6beeafb95d0afec4be27daebd12a24626/src/parser.ts#L552-L559
On [email protected] [email protected] its bombing out:
70% sealing React Docgen Typescript Plugin/Users/stephensolka/dev/angellist/frontend/talent/node_modules/react-docgen-typescript/lib/parser.js:328
return callSignature.parameters.map(function (param) {
^
TypeError: Cannot read property 'parameters' of undefined
at Parser.getParameterInfo (/Users/stephensolka/dev/angellist/frontend/talent/node_modules/react-docgen-typescript/lib/parser.js:328:30)
I'm getting the same error. Trying to understand where/how I've introduced this.
Hello, maybe you can ask here:
https://stackoverflow.com/questions/53675139/cannot-read-property-parameters-of-undefined-while-passing-context-actions-o
There was no activity for a long time. The issue will be closed soon.
any updates?
There was no activity for a long time. The issue will be closed soon.
Closing this issue as obsolete.