New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for ESlint 8.0 in vue-eslint-parser
#6759
Comments
This is already fixed in #6714 so a backport to the v4 line would be necessary. I think it would be great to support eslint 8 in vue-cli 4.x, since it will take people a while even after the v5 release to migrate their projects, and it would be problematic, to be stuck with eslint 7 in that case. |
Thank you @Morl99, could you elaborate on how to apply this fix to an existing project? |
No idea, I would hope that the maintainers would include it as an official backport release. |
In my case, I needed to keep working on an existing project. I have tried to work with |
This worked for me for an existing project:
It gave me eslint version 6.x.x |
this is worked for me, if you have old version package.json and package.lock on github, you delete node modules folder and two files above from currently project then used two file from github instead, finally run npm install |
@Sovai downgrade eslint to v |
here is my last stable version, i hope it will save someone's time |
Several months later, still can't upgrade to ESLint v8 even though all the rest ecosystem's packages seem to be updated already? |
Seriously. Just spent the better part of a day upgrading packages to support eslint8 since a dev dependency requires |
Can't believe this issue is still happening |
And it's still happening with v8.
It will work for others as well. |
Any update for when this will be resolved? Running into the same issue... |
Same issue here |
Same issue here. @yyx990803 or @sodatea, this has been open a while. Can you provide any kind of a status or update? Is there maybe some specialized help that you need in order to do this? |
Well, I can't speak for @yyx990803 but perhaps this commit of his is the update? Does this mean we must either (a) use Vite or (b) stick with |
Just bumped into the same problem ✋ |
Using ESLint 8.X.X fails to run unit-tests for me with following error: Logs
Reproduce:
Downgrading to 7.32.0 works fine. |
Purge unused dependencies. Update dependencies to latest except: - ts-lint. Keep locked to 9.0.1 because that's the latest version that works with Webpack 4 that's still used by vue-cli-plugin-electron-builder. - Keep eslint at version 7 because tests cannot be run/compiled with version 7, see eslint/eslint#15678, vuejs/vue-cli#6759. Newer versions of ESLint modules do not allow linebreak after or before = operator (operator-linebreak). This commit also changes files to comply with it. Closes #116, #119, #122, #130.
Purge unused dependencies. Update dependencies to latest except: - ts-lint. Keep locked to 9.0.1 because that's the latest version that works with Webpack 4 that's still used by vue-cli-plugin-electron-builder. - Keep eslint at version 7 because tests cannot be run/compiled with version 7, see eslint/eslint#15678, vuejs/vue-cli#6759. Newer versions of ESLint modules do not allow linebreak after or before = operator (operator-linebreak). This commit also changes files to comply with it. Closes #116, #119, #122, #130.
Purge unused dependencies. Update dependencies to latest except: - ts-lint. Keep locked to 9.0.1 because that's the latest version that works with Webpack 4 that's still used by vue-cli-plugin-electron-builder. - Keep eslint at version 7 because tests cannot be run/compiled with version 7, see eslint/eslint#15678, vuejs/vue-cli#6759. Newer versions of ESLint modules do not allow linebreak after or before = operator (operator-linebreak). This commit also changes files to comply with it. Closes #116, #119, #122, #130.
Purge unused dependencies. Update dependencies to latest except: - ts-lint. Keep locked to 9.0.1 because that's the latest version that works with Webpack 4 that's still used by vue-cli-plugin-electron-builder. - Keep eslint at version 7 because tests cannot be run/compiled with version 7, see eslint/eslint#15678, vuejs/vue-cli#6759. Newer versions of ESLint modules do not allow linebreak after or before = operator (operator-linebreak). This commit also changes files to comply with it. Closes #116, #119, #122, #130.
Is there any updates on this issue? |
Waiting for updates... |
I am facing an issue with using the es2022 feature class Foo {
...
isBlah = (arg) => { ... };
} This is supported by using From the comments above, it has been mentioned that the issue must be fixed in v4.x of the package but it does not seem to be. Is this considered a bug that needs to be addressed in v4? |
Now in 2023, still facing the same issue. |
Holdon there just a minute buddy, So basically I forgot where I saw this (stack overflow pretty sure), but as I was closing my tabs after a successful hotfix from this issue, I came back to this thread and saw your comment, so let me share my solution. I realized that whenever I did So I just do I was in your same situation a hour or two ago man it was frustrating hopefully my solution works for you or anyone else out there! :) |
It seems that your steps is to uninstall eslint and then install eslint without specified version number (please correct me if I understood wrong). If that result in installing eslint v6 or v7, of course the error will gone. But it is not related to this issue. Because what we are asking for is supporting eslint 8.x |
Why does
I have tried to replace babel-eslint with @babel/eslint-parser in my package.json file but then i have this error when running eslint:
Probably if there is a way to replace babel-eslint with @babel/eslint-parser It would be possible to use eslint 8. |
still got this in 2023. |
Purge unused dependencies. Update dependencies to latest except: - ts-lint. Keep locked to 9.0.1 because that's the latest version that works with Webpack 4 that's still used by vue-cli-plugin-electron-builder. - Keep eslint at version 7 because tests cannot be run/compiled with version 7, see eslint/eslint#15678, vuejs/vue-cli#6759. Newer versions of ESLint modules do not allow linebreak after or before = operator (operator-linebreak). This commit also changes files to comply with it. Closes #116, #119, #122, #130.
It stills apear in 2024 |
Look forward to seeing it still opened in 2025 🖖🏻 |
Version
Environment info
What did you do?
I'm using Vue CLI & after upgrading
ESlint
from version7.32.0
to8.0.1
I get the errorSyntax Error: TypeError: eslint.CLIEngine is not a constructor
after launching the project for development withnpm run serve
.Steps to reproduce
npm install -g @vue/cli
.vue create todo-list-vue
.ESlint
, run the commandcd todo-list-vue && npm install eslint@latest
.npm run serve
.You will get the following error in the console:
Syntax Error: TypeError: eslint.CLIEngine is not a constructor
What is expected?
Before upgrading
ESlint
, I was able to launch the project for development without issues.What is actually happening?
I got this error:
Syntax Error: TypeError: eslint.CLIEngine is not a constructor
& my code won't compile for development.Related link
Bug: TypeError: this.cliEngine is not a constructor
The text was updated successfully, but these errors were encountered: