Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Rule: vue/comment-directive #122

Open
fuongz opened this issue Nov 16, 2020 · 12 comments
Open

Rule: vue/comment-directive #122

fuongz opened this issue Nov 16, 2020 · 12 comments

Comments

@fuongz
Copy link

fuongz commented Nov 16, 2020

Hi everyone, I've caught an error about clear of vue/comment-directive after upgrading from version 1.0.0 to version 2.0.0.

10:12  error  clear  vue/comment-directive

Versions

  • nuxt v2.14.7
  • node v14.15.0
  • eslint-plugin-nuxt v2.0.0
@clarkdo
Copy link
Member

clarkdo commented Nov 16, 2020

Hi @senpp , look this rule has new change in eslint-plugin-vue v7.

You can check eslint-plugin-vue doc for more details.

@fuongz
Copy link
Author

fuongz commented Nov 16, 2020

Hi @senpp , look this rule has new change in eslint-plugin-vue v7.

You can check eslint-plugin-vue doc for more details.

Hi @clarkdo , I don't use any code comment in my file, I've resolved this with [#121 ]. But I need to manually upgrade in my package.json

@RyanMulready
Copy link

I'm having the same issue. This error is being reported on files with no comments at all since updating to version 2. Downgrading back to 1 fixes the problem.

@clarkdo
Copy link
Member

clarkdo commented Nov 16, 2020

@RyanMulready I think you can try to upgrade @nuxtjs/eslint-config as @senpp mentioned for making sure eslint and eslint-plugin-vue are all updated .

@hendydwip
Copy link

Hi, wanna ask if anyone gets the same as I do like this after update the package @nuxt/eslint_config and @nuxt/eslint_module ?
image

@fuongz
Copy link
Author

fuongz commented Nov 24, 2020

Hi, wanna ask if anyone gets the same as I do like this after update the package @nuxt/eslint_config and @nuxt/eslint_module ?
image

Have you tried something like that?

rm -rf node_modules && rm yarn.lock && yarn cache clean

@hendydwip
Copy link

Hi, wanna ask if anyone gets the same as I do like this after update the package @nuxt/eslint_config and @nuxt/eslint_module ?
image

Have you tried something like that?

rm -rf node_modules && rm yarn.lock && yarn cache clean

Sorry for the late reply.
Yeah, I tried that, I'm using NPM right now. Still get the error somehow, but I tried to install npm install eslint-loader, and work perfectly hehehe

@RyanMulready
Copy link

@RyanMulready I think you can try to upgrade @nuxtjs/eslint-config as @senpp mentioned for making sure eslint and eslint-plugin-vue are all updated .

Tried again today running the following command, still getting the same error

npm install @nuxtjs/eslint-config@latest eslint@latest eslint-plugin-vue@latest eslint-plugin-nuxt@latest

@RyanMulready
Copy link

I was eventually able to get this resolved though I'm not sure what I did differently... here is my package.json settings for relevant deps

        "@babel/core": "^7.12.9",
        "@babel/eslint-parser": "^7.12.1",
        "@nuxtjs/eslint-module": "^3.0.1",
        "eslint-plugin-nuxt": "^2.0.0",
        "eslint-plugin-vue": "^7.1.0",
        "eslint": "^7.14.0",

@CristianLluis
Copy link

I was eventually able to get this resolved though I'm not sure what I did differently... here is my package.json settings for relevant deps

        "@babel/core": "^7.12.9",
        "@babel/eslint-parser": "^7.12.1",
        "@nuxtjs/eslint-module": "^3.0.1",
        "eslint-plugin-nuxt": "^2.0.0",
        "eslint-plugin-vue": "^7.1.0",
        "eslint": "^7.14.0",

Updating eslint solved the issue for me. Thx 👍

@krub-tech
Copy link

krub-tech commented Jan 25, 2021

I have the same problem, I tried npm update, but it didn't help. there are no records in package.json about eslint. i'm use nuxt 2.14.12

@vinstah
Copy link

vinstah commented May 9, 2022

I had an old project the when i installed node modules I got the same error.
I used yarn add nuxt to get the latest then yarn add @nuxtjs/eslint-module @nuxtjs/eslint-config

then no more error :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants