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
This is probably a niche case but I am just starting with DocumentJS, having something that already has some JSDoc comments put in, but probably is not at all structured appropriately. This is following the exact steps on documentjs.com directly, except that the 'document your code' stuff was already done and hence no file modifications have been made yet; I'm just running this in a project folder that already existed. It happens whether I use the documentjs.json from documentjs.com or whether I delete it wholesale as the API docs appear to state. It does seem to be confused also about where the output directory is, but I assume I will figure out ways to configure that.
When I am running documentjs in a debugger, I get some initial output:
No documentjs.json. Create one to configure its behavior. generate_project.js:101
Generating docs at ..\docs generate_project.js:147
FIND: README.md file_event_emitter.js:80
FIND: app.js file_event_emitter.js:80
BUILD: Using cache site\templates\99914b932bd37a50b983c5e7c90ae93ib templates.js:64
FIND: libs\content-uuid.js file_event_emitter.js:80
FIND: libs\forge.js file_event_emitter.js:80
FIND: libs\get-db.js file_event_emitter.js:80
FIND: routes\auth.js file_event_emitter.js:80
FIND: routes\forge.js file_event_emitter.js:80
FIND: static\autodesk.js file_event_emitter.js:80
FIND: static\run-viewer.js file_event_emitter.js:80
WARNING!! _default.js:129
There is no @requires tag. did you mean @return ?
WARNING!! _default.js:129
There is no @requires tag. did you mean @return ?
WARNING!! _default.js:129
There is no @requires tag. did you mean @return ?
WARNING!! _default.js:129
There is no @requires tag. did you mean @return ?
WARNING!! _default.js:129
There is no @throws tag. did you mean @this ?
BUILD: Getting build module static_dist.js:88
Guessed parent 'libs\forge.js'. Set parent in your siteConfig. clean_doc_map.js:47
At this point the debugger indeed pauses in filename.js (from generate.js:60 > doc_map.js:30 > doc_object.js:32) but it appears to be a normal, valid call.
Continuing past that, there is another line of output,
OUT: ..\docs\README.html doc_object.js:35
and then the set of circumstances is set which will generate the TypeError: the parameter docObject is called as undefined.
So it's trying to render this getActiveAndParents section and makes a call to Handlebars.
The active argument to this is apparently a documentation object representing README.md and the parents argument is apparently an array with one element,
Object {name: undefined, body: "This is temporary content. Create a undefined @page", type: "page", children: Array(1), glob: Object, …}
When this happens the urlTo is fed the .name property which is undefined, the typeof undefined is "undefined" which is not "string" so we try to access its .name, but this is attempting to lookup properties on undefined and generates the above TypeError.
The text was updated successfully, but these errors were encountered:
This is probably a niche case but I am just starting with DocumentJS, having something that already has some JSDoc comments put in, but probably is not at all structured appropriately. This is following the exact steps on documentjs.com directly, except that the 'document your code' stuff was already done and hence no file modifications have been made yet; I'm just running this in a project folder that already existed. It happens whether I use the
documentjs.json
fromdocumentjs.com
or whether I delete it wholesale as the API docs appear to state. It does seem to be confused also about where the output directory is, but I assume I will figure out ways to configure that.When I am running
documentjs
in a debugger, I get some initial output:At this point the debugger indeed pauses in
filename.js
(fromgenerate.js:60 > doc_map.js:30 > doc_object.js:32
) but it appears to be a normal, valid call.Continuing past that, there is another line of output,
and then the set of circumstances is set which will generate the
TypeError
: the parameterdocObject
is called asundefined
.The top of the call stack here is:
So it's trying to render this
getActiveAndParents
section and makes a call to Handlebars.The
active
argument to this is apparently a documentation object representingREADME.md
and theparents
argument is apparently an array with one element,When this happens the
urlTo
is fed the.name
property which is undefined, the typeofundefined
is"undefined"
which is not"string"
so we try to access its.name
, but this is attempting to lookup properties onundefined
and generates the aboveTypeError
.The text was updated successfully, but these errors were encountered: