-
Notifications
You must be signed in to change notification settings - Fork 889
TypeError: Cannot read property 'param' of undefined #4326
Comments
This might be fixed already by #3557 (or by one of the |
It's still an issue building from master, but I wasn't able to test from that PR. |
Awesome, thanks for checking! |
Any news about this issue? In my case I have the error when I use
However the error is thrown only if the |
grabbing this @JoshuaKGoldberg |
@JoshuaKGoldberg @adidahiya submitted a PR for this. #4895 I may be failing on Circle because of it says I need to write documentation for ` export const handler = async () => { ... }
|
* creating rule * rule written * rule replicated * isolated rule * added test files back in * captured case of this.contentTags being undefined * added documentation to test
Bug Report
TypeScript code being linted
The error is thrown in each file which contains a jsdoc. Removing the jsdoc clears the error that was thrown.
with
tslint.json
configuration:Full config:
Actual behavior
The error is thrown in each file which contains a jsdoc. Removing the jsdoc clears the error that was thrown (but introduces a proper error for a missing jsdoc.) This invalid behavior only occurs when
"tags": { "existence": [""] }
is present in the config.Expected behavior
I would expect for this this configuration to give proper "Documentation must exist..." errors for any exported variable that doesn't have a jsdoc. An empty jsdoc should give no errors (as I am doing validation with a separate rule). Disabling other rules does not change the error.
Correction: "Documentation must exist..." error is still thrown on a completely empty
/** ... */
, the TypeError occurs once JSDoc rules are added in such as@returns
or@param
The text was updated successfully, but these errors were encountered: