AwaitExpression
does not include ImportExpression
as possible value of argument
property
#4877
Closed
3 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
good first issue
Good for newcomers
package: typescript-estree
Issues related to @typescript-eslint/typescript-estree
Repro
https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgQQMoBUD6A5A8gEQFFN0BNABUNQBo51Ur0oBTZuAXzgDMoIQ4A5AAEYATzDMAzgGMowMDAC0UgDbAAdjAD0AVxjAVkgQG4AsACgL0iOsnwAJsxjMoIDcwCS4aDFQQdUNJsALxwABQWcHDqEI4AXHQMGCzMAHTIAO4AhsAwhAAeYCySksA21BYAlAl2cuoA5nAAPtE6KipwwQB8iJFwwFzhMY6pWVD1OiDMmqliEp3BoWhYeEQkFFSpXpCwBUVSpTaVveZRUVpafewWfSwwAeqt7Wbm7MZAA
Expected Result
No errors
Actual Result
An error from TypeScript:
Additional Info
Here's an AST tree showing that it's possible to have an import expression as the argument of an await expression:
https://astexplorer.net/#/gist/bd61e9f9222ff844ddbd1748895d8f8f/07c5c90e2933a965ef5329f4eb68588910343271
Versions
@typescript-eslint/types
5.20.0
TypeScript
4.6.3
node
v14.18.2
The text was updated successfully, but these errors were encountered: