I'm using JSDoc3 (is that compatible?) and am getting uncaught exceptions on a fairly large codebase. I'm not sure how to detect which file and jsdoc entry in my code is causing the exceptions however. In any case, the nature of them is as follows:
TypeError: Cannot call method 'toLowerCase' of undefined
at Object.jsDocMatchType [as match] (/myproject/node_modules/jscs-jsdoc/lib/jsdoc-helpers.js:129:29)
If on that line, I detect that and continue the loop iteration (effectively skipping these errors), I get the next uncaught error:
TypeError: Cannot read property 'type' of null
at Object.jsDocMatchType [as match] (/myproject/node_modules/jscs-jsdoc/lib/jsdoc-helpers.js:135:32)
Please note that the line number there is skewed by a few because of the continue statement I injected above it. The error is about the usage of if (!argument.value.type) {.
Is there anything I can do to figure out what chunk of JSDoc caused this?
I'm using JSDoc3 (is that compatible?) and am getting uncaught exceptions on a fairly large codebase. I'm not sure how to detect which file and jsdoc entry in my code is causing the exceptions however. In any case, the nature of them is as follows:
If on that line, I detect that and
continuethe loop iteration (effectively skipping these errors), I get the next uncaught error:Please note that the line number there is skewed by a few because of the
continuestatement I injected above it. The error is about the usage ofif (!argument.value.type) {.Is there anything I can do to figure out what chunk of JSDoc caused this?