Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

@types/eslint Error: ChainExpression and ImportExpression members of ESTree not exported

I am having some troubles after executing my angular application with npm start, 'ChainExpression' & 'ImportExpression'members of ESTree interface are not exported causing errors...

Please check image below:

enter image description here

I am using Angular 12 and next node dependencies in my package.json, please see below:

{
...
"@types/node": "12.11.1",
"eslint": "7.10.0",
"ts-node": "8.3.0",
"tslib": "2.2.0",
"tslint": "6.1.0",
"typescript": "4.2.4",
...
}

Do you have any idea about this problem? I will appreciate any kind of help.

like image 522
Alberto Bricio Avatar asked Sep 12 '25 15:09

Alberto Bricio


2 Answers

I had the same problem and could see there was a problem with my node modules @types: eslint was referring to ChainExpression and ImportExpression which were missing from estree. compared these with a new angular12 project and then fixed by updating my estree like so:

npm install @types/[email protected] 
like image 177
user16501418 Avatar answered Sep 15 '25 05:09

user16501418


I had the same problem running typedoc.

This fixed it.

npm install @types/estree@latest
like image 44
Ole Avatar answered Sep 15 '25 04:09

Ole