Code Monkey home page Code Monkey logo

Comments (17)

simonmaass avatar simonmaass commented on June 28, 2024 12

same problem

from eslint-plugin-nuxt.

MrToxy avatar MrToxy commented on June 28, 2024 10

Still not fixed

from eslint-plugin-nuxt.

clarkdo avatar clarkdo commented on June 28, 2024 1

Looks related to vuejs/eslint-plugin-vue#869

I'll have a look and figure out the root cause.

from eslint-plugin-nuxt.

mwidmann avatar mwidmann commented on June 28, 2024 1

I'm having the above problem as well. Manually installing eslint-plugin-vue@6 as suggested by @ota-meshi in vuejs/eslint-plugin-vue#869 (comment) solved the issue for me. So maybe it's just a dependency that needs to be updated.

this brought down the issues reported in linting from

107 problems (32 errors, 75 warnings)

to

37 problems (0 errors, 37 warnings)

But those are just issues that arose due to the rule updates.

[EDIT] I see it has already been updated in master and therefore it should be fixed soon. ๐Ÿ‘

from eslint-plugin-nuxt.

ramiroazar avatar ramiroazar commented on June 28, 2024 1

I'm also experiencing this issue after installing nuxt using yarn create nuxt-app.

Running yarn list eslint-plugin-vue outputs the following.

โ”œโ”€ [email protected]
โ”‚  โ””โ”€ [email protected]
โ””โ”€ [email protected]

Not sure where v5.2.3 is coming from, but running yarn run dev outputs the following.

error Expected '<component>' elements to have 'v-bind:is' attribute vue/require-component-is

from eslint-plugin-nuxt.

clarkdo avatar clarkdo commented on June 28, 2024 1

eslint-plugin-vue@5 issue will be fixed in next release of https://github.com/nuxt/eslint-config

from eslint-plugin-nuxt.

clarkdo avatar clarkdo commented on June 28, 2024

From the error log, I think the errors are lint errors from new rules of vue eslint plugin, so I suggest fixing the lint errors in your repo, if thereโ€™s special requirement, you can exclude those rules.

from eslint-plugin-nuxt.

Miaoxingren avatar Miaoxingren commented on June 28, 2024

Those are valid according to eslint-plugin-vue:

<template>
  <!-- โœ“ GOOD -->
  <component :is="type"/>
  <component v-bind:is="type"/>

  <!-- โœ— BAD -->
  <component/>
  <component is="type"/>
</template>

I follow the rules in my code:

<template>
  <div class="container">
    <div>
      ....
      <component :is="myComp" />
      ....
    </div>
  </div>
</template>

But I got lint errors with @0.5.0 :

$ npm run lint

> [email protected] lint E:\lib_project\test-nuxt-eslint
> eslint --ext .js,.vue --ignore-path .gitignore .

....

E:\lib_project\test-nuxt-eslint\pages\index.vue
  8:7  error  Expected '<component>' elements to have 'v-bind:is' attribute  vue/require-component-is

โœ– 3 problems (2 errors, 1 warning)

from eslint-plugin-nuxt.

clarkdo avatar clarkdo commented on June 28, 2024

[email protected] is using eslint-plugin-vue@^6.0.0, so if you have direct dependency or hoisted eslint-plugin-vue@5, please upgrade it to v6.

from eslint-plugin-nuxt.

clarkdo avatar clarkdo commented on June 28, 2024

@MrToxy Can you please confirm which verison of eslint-config you're installing ?

yarn why @nuxtjs/eslint-config
yarn why eslint-plugin-vue

from eslint-plugin-nuxt.

prabodhana avatar prabodhana commented on June 28, 2024

I have same problem

from eslint-plugin-nuxt.

coeurofbear avatar coeurofbear commented on June 28, 2024

I also have the problem.

from eslint-plugin-nuxt.

clarkdo avatar clarkdo commented on June 28, 2024

@MrToxy Can you please confirm which verison of eslint-config you're installing ?

yarn why @nuxtjs/eslint-config
yarn why eslint-plugin-vue

@coeurofbear Can you please confirm above comment about package version?

from eslint-plugin-nuxt.

nasimuddin01 avatar nasimuddin01 commented on June 28, 2024

Is there any solve to this problem? Been stuck here for two days. The problem arose when I upgraded all my package.

from eslint-plugin-nuxt.

syffs avatar syffs commented on June 28, 2024

@clarkdo same problem

There seem to be a conflict between @nuxtjs/eslint-config and eslint-plugin-nuxt:

$ yarn why @nuxtjs/eslint-config
yarn why v1.22.5
[1/4] Why do we have the module "@nuxtjs/eslint-config"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
=> Found "@nuxtjs/[email protected]"
info Has been hoisted to "@nuxtjs/eslint-config"
info This module exists because it's specified in "devDependencies".
Done in 1.00s.
$ yarn why eslint-plugin-vue
yarn why v1.22.5
[1/4] Why do we have the module "eslint-plugin-vue"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
=> Found "[email protected]"
info Reasons this module exists
   - "@nuxtjs#eslint-config" depends on it
   - Hoisted from "@nuxtjs#eslint-config#eslint-plugin-vue"
=> Found "eslint-plugin-nuxt#[email protected]"
info This module exists because "eslint-plugin-nuxt" depends on it.
Done in 1.07s.
$ yarn list --pattern="eslint-plugin-vue"
yarn list v1.22.5
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ [email protected]
โ””โ”€ [email protected]

this issue has been opened for a while, any workaround ?

from eslint-plugin-nuxt.

clarkdo avatar clarkdo commented on June 28, 2024

Hi @syffs
Looks youโ€™re having outdated @nuxtjs/eslint-config, the latest version is 3.1.0 which is using eslint-plugin-vue v6.

Can you try to upgrade @nuxtjs/eslint-config ?

from eslint-plugin-nuxt.

syffs avatar syffs commented on June 28, 2024

Hi @clarkdo

You're right, I used create-nuxt-app assuming it was up-to-date. Upgrading everything fixed it ! cheers.

from eslint-plugin-nuxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.