-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'split' of undefined #301
Comments
Same issue on my side |
To @moroine: I've found a way to fix this but it's completely incorrect and weird. Just added this condition: // in /usr/lib/node_modules/esdoc/out/Publisher/Builder/DocBuilder#1288
if (prop.name === undefined) {
return ice;
} If you need a quick fix to generate docs - this can work. But I don't recommend to do it in any other case. UPD: There's an It's funny that I've been migrating from JSDoc and after I removed some JSDoc tags (as I see now) it began to work properly even without this fix. 🎱 |
Here's an example that throws a similar error export class Product {
constructor ( a , b ) {
this.a = a ;
this.b = b ;
}
zero ( ) {
return [ this.a.zero( ) , this.b.zero( ) ] ;
}
plus ( [ a , b ] , [ A , B ] ) {
return [ this.a.plus( a , A ) , this.b.plus( b , B ) ] ;
}
} Commenting out the /**
* @param first
* @param second
*/ just before the |
Seems to me it's somehow related to destructive assignment and it's parsing. Did you try any other ways? // like this one
function example({ a: A, b: B }, c = null, [ d = null ]) {
// check params inside
} |
No but I think your guess is correct. |
Thanks for this report. I will fix this bug in next version. |
I fixed this bug. And will release in next version. |
Getting this error when trying to generate docs for multiple files.
Here is a log:
And this is my config:
The text was updated successfully, but these errors were encountered: