You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError: Cannot read property 'split' of undefined #301
Getting this error when trying to generate docs for multiple files.
Here is a log:
badge.svg
identifiers.html
index.html
class/components/redis/Connection.js~Connection.html
class/components/errors/DebugError.js~DebugError.html
class/components/errors/EmptyDataError.js~EmptyDataError.html
/usr/lib/node_modules/esdoc/out/src/Publisher/Builder/ClassDocBuilder.js:79
throw _iteratorError;
^
TypeError: Cannot read property 'split' of undefined
at /usr/lib/node_modules/esdoc/out/src/Publisher/Builder/DocBuilder.js:1287:53
at IceCap.loop (/usr/lib/node_modules/esdoc/node_modules/ice-cap/out/src/IceCap.js:261:9)
at ClassDocBuilder._buildProperties (/usr/lib/node_modules/esdoc/out/src/Publisher/Builder/DocBuilder.js:1285:11)
at /usr/lib/node_modules/esdoc/out/src/Publisher/Builder/DocBuilder.js:651:41
at IceCap.loop (/usr/lib/node_modules/esdoc/node_modules/ice-cap/out/src/IceCap.js:261:9)
at ClassDocBuilder._buildDetailDocs (/usr/lib/node_modules/esdoc/out/src/Publisher/Builder/DocBuilder.js:606:11)
at ClassDocBuilder._buildDetailHTML (/usr/lib/node_modules/esdoc/out/src/Publisher/Builder/DocBuilder.js:568:29)
at ClassDocBuilder._buildClassDoc (/usr/lib/node_modules/esdoc/out/src/Publisher/Builder/ClassDocBuilder.js:172:44)
at ClassDocBuilder.exec (/usr/lib/node_modules/esdoc/out/src/Publisher/Builder/ClassDocBuilder.js:64:36)
at publish (/usr/lib/node_modules/esdoc/out/src/Publisher/publish.js:169:59)
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#1288if(prop.name===undefined){returnice;}
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 ice.loop('property', properties, function (i, prop, ice) { ... }) block and in some cases (I didn't go further) prop can be an empty object or smth. So the name property is undefined.
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. 🎱
make-github-pseudonymous-again commented on Nov 2, 2016
Activity
moroine commentedon Jun 23, 2016
Same issue on my side
damirka commentedon Jun 23, 2016
To @moroine:
I've found a way to fix this but it's completely incorrect and weird. Just added this condition:
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
ice.loop('property', properties, function (i, prop, ice) { ... })block and in some cases (I didn't go further) prop can be an empty object or smth. So the name property is undefined.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. 🎱
make-github-pseudonymous-again commentedon Nov 2, 2016
Here's an example that throws a similar error
Commenting out the
plusmethod or addingjust before the
plusmethod makes esdoc work again.damirka commentedon Nov 2, 2016
Seems to me it's somehow related to destructive assignment and it's parsing. Did you try any other ways?
make-github-pseudonymous-again commentedon Nov 2, 2016
No but I think your guess is correct.
h13i32maru commentedon Dec 27, 2016
Thanks for this report.
I will fix this bug in next version.
h13i32maru commentedon Dec 27, 2016
I fixed this bug.
c8ae3f5
And will release in next version.