Comments (17)
same problem
from eslint-plugin-nuxt.
Still not fixed
from eslint-plugin-nuxt.
Looks related to vuejs/eslint-plugin-vue#869
I'll have a look and figure out the root cause.
from eslint-plugin-nuxt.
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.
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.
eslint-plugin-vue@5 issue will be fixed in next release of https://github.com/nuxt/eslint-config
from eslint-plugin-nuxt.
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.
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.
[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.
@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.
I have same problem
from eslint-plugin-nuxt.
I also have the problem.
from eslint-plugin-nuxt.
@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.
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.
@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.
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.
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)
- Rule: validate export keys in Vuex files
- Which packages are necessary when using ESLint and Nuxt? HOT 1
- eslint-plugin-vueใซVue3ใฎใใผใธใงใณใใใใฎใงใ่ฟฝๅ ใใ HOT 2
- 'error clear' reported on each template closing tag in all components HOT 2
- Rule: vue/comment-directive HOT 12
- Missing peer dependency `eslint`
- Rule: don't use timers
- Action Required: Fix Renovate Configuration
- Add Core Web Vital rules to `plugin:nuxt/recommended` (RFC)
- Dependency Dashboard
- nuxt/eslint-plugin-nuxt vs nuxt/eslint-config and nuxt3 globals HOT 22
- Rule: Warn for deprecated fetch method
- Disable `vue/multi-word-component-names`
- Vue 2.7 Composition API Support?
- `ref` is not defined Nuxt 3 HOT 2
- detect using route path as key to asyncData/fetch HOT 1
- Auto-imports marked as "is not defined" in Nuxt 3 .js files HOT 1
- nuxt/require-func-head doesnt work with factories
- nuxt/no-this-in-fetch-data is now ok
- Rule: no relative import paths / enforce aliases
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-plugin-nuxt.