TypeError: this.cliEngine is not a constructor
Hi!
When I try to set up eslint in webstorm using this guide https://www.jetbrains.com/help/webstorm/eslint.html i get an error message on each js file saying ESLint: TypeError: this.cliEngine is not a constructor . I have search the web and cannot find any way to fix this issue, does anyone know how to solve this problem?
Thanks,
Magnus
Please sign in to leave a comment.
To add to what Elena said above, the issue is with ESLint version 6. If you cannot upgrade IntelliJ, you'll need to downgrade to ESLint version 5.
npm install --save-dev eslint@5
did the trick for me.
Hi!
I got the same problem with RubyMine and there are no 2019.1.3 patch with fix.
Please help me to find solution.
Kind regards,
Evgenii.
Upon upgrading to 2019.1.3 the error no longer occurs so please consider this issue as solved.
Magnus
Yes, https://youtrack.jetbrains.com/issue/WEB-38922 is fixed in 2019.1.3
Until RubyMine 2019.1.3 is available, the only solution is downgrading ESLint
How about PhpStorm?
isn't PhpStorm 2019.1.3 available? You can download it from https://www.jetbrains.com/phpstorm/download/other.html, if upgrading directly to 2019.2 is not an option for you
You're right, I was on 2018 (:
the same error now with me
Please make sure to upgrade to the most recent IDE version
I have upgraded to 2019.2.2 and still facing this issue
Works fine for me in 2019.2.2
Please can you share a sample project the issue can be reproduced with?
It seems while upgrading, 2 versions of webstorm got installed. I was still using the old version.
It is working in the new one. Apologies for the trouble
works fine for me in a new React app (create-react-app version: 3.1.2). Are you sure you are using 2019.2.2? Please provide a screenshot of Settings | Languages & Frameworks | JavaScript | Code Quality Tools | ESLint page and idea.log
It is not working with ESLint 8.0.1 but it works with 7.32.0
ESLint 8 is supported since 2021.2.2, see https://youtrack.jetbrains.com/issue/WEB-52236
Ok then, is just that I clicked "Check for updates" before commenting, maybe it will be available for me later.
Hi all, I have IntellijIDEA ultimate 2018.3 and I get the same problem. I have perpetual fallback for this version.
There is an option to specify custom ESLint package (so I did point it to 5.16.0) and got past the TypeError: this.cliEngine, but then I get errors for unsupported config in .eslintrc.js
If I try to point it to a custom .eslintrc.js that is not in the root directory, it seems that it gets ignored, because I get the same error. Am I doing something wrong?
Downgrading lint is not an option and neither is upgrading IDEA, at least at the moment.