typedoc icon indicating copy to clipboard operation
typedoc copied to clipboard

Crash in `converter/plugins/SourcePlugin.js:112`

Open MarcusRiemer opened this issue 9 years ago • 5 comments

Attempting to compile my project results in a plain crash of typedoc 0.5.6:

marcus@mri-tp:~/p/s/client >>> ./node_modules/typedoc/bin/typedoc --out doc .                                                                                                                                git:widget-hierarchy-refactor *

Using TypeScript 2.1.6 from /home/marcus/projects/scratch-sql/client/node_modules/typedoc/node_modules/typescript/lib
/home/marcus/projects/scratch-sql/client/node_modules/typedoc/dist/lib/converter/plugins/SourcePlugin.js:112
                    if (!Object.prototype.hasOwnProperty.call(directory, path)) {
                                                         ^

TypeError: Cannot convert undefined or null to object
    at hasOwnProperty (<anonymous>)
    at /home/marcus/projects/scratch-sql/client/node_modules/typedoc/dist/lib/converter/plugins/SourcePlugin.js:112:58
    at Array.forEach (native)
    at /home/marcus/projects/scratch-sql/client/node_modules/typedoc/dist/lib/converter/plugins/SourcePlugin.js:111:33
    at Array.forEach (native)
    at SourcePlugin.onEndResolve (/home/marcus/projects/scratch-sql/client/node_modules/typedoc/dist/lib/converter/plugins/SourcePlugin.js:103:23)
    at triggerEvents (/home/marcus/projects/scratch-sql/client/node_modules/typedoc/dist/lib/utils/events.js:121:43)
    at triggerApi (/home/marcus/projects/scratch-sql/client/node_modules/typedoc/dist/lib/utils/events.js:106:13)
    at eventsApi (/home/marcus/projects/scratch-sql/client/node_modules/typedoc/dist/lib/utils/events.js:20:18)
    at Converter.EventDispatcher.trigger (/home/marcus/projects/scratch-sql/client/node_modules/typedoc/dist/lib/utils/events.js:261:13)

Specifying the --mode modules property did not help either.

MarcusRiemer avatar Feb 15 '17 09:02 MarcusRiemer

Bump, same here.

Timmaex avatar Mar 06 '17 12:03 Timmaex

What's the solution for the above error?

nuthalapativarun avatar Mar 27 '17 21:03 nuthalapativarun

@aciccarello Do you know a solution for the problem?

nuthalapativarun avatar Mar 27 '17 21:03 nuthalapativarun

No one has worked on a solution yet hence why it is still open. PRs or any other help are always welcome :smile:

aciccarello avatar Mar 27 '17 22:03 aciccarello

As far as I can tell this has been fixed, that line is hit ~20 times while testing with no crash, please open a new issue if you are still experiencing this in the latest version.

Gerrit0 avatar Dec 26 '19 20:12 Gerrit0