Regression: @typescript/require-await causes "Cannot set property 'hasAwait' of null" #1243
Labels
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
I set
and alsoturning off the typescript-eslint rule gets rid of the error.
I'm getting this error only since today after "yarn upgrade" upgrade typescript-eslint (it worked with the previous published version, I run that package upgrade command daily).
So this seems to be a regression.
EDIT: The error occurs in a file belonging to eslint. However the rule is turned off for eslint, and when I turn off the typescript-eslint rule the error disappears. So while it is reported in an eslint file it seems to originate from typescript-eslint? eslint was not updated in a month and it all worked -- with daily package updates and package.json set to "*" for all these packages to always get whatever is latest -- until I ran today's update.
The code at websocket-promisifier.ts:493 is ("function" header is line 492)
Another file that has that error has it in a function that has this return statement:
eslintrc (top):
Versions
@typescript-eslint/eslint-plugin
2.8.0
@typescript-eslint/parser
2.8.0
TypeScript
3.7.2
ESLint
6.6.0
node
12.13.1
npm
The text was updated successfully, but these errors were encountered: