Maybe not compatible with ESLint@4.4.0
See original GitHub issueTell us about your environment
- ESLint Version: 4.4.0
- eslint-plugin-vue Version: 3.10.0
- Node Version: 8.2.1
Please show your full configuration:
.eslintrc.js:
module.exports = {
root: true,
extends: [ '../eslint-config-riophae/vue.js' ], // https://github.com/riophae/eslint-config-riophae/blob/24da6bb3723e60e8721075db7baccfc0a6c12bdd/vue.js
rules: {
indent: 0,
'prefer-destructuring': 0,
'no-warning-comments': 0,
},
}
- The error message:
Error while loading rule 'vue/no-confusing-v-for-v-if': Cannot read property 'on' of undefined
TypeError: Error while loading rule 'vue/no-confusing-v-for-v-if': Cannot read property 'on' of undefined
at ensureEmitter (/mnt/d/Projects/tree-select/node_modules/vue-eslint-parser/index.js:2640:23)
at Object.registerTemplateBodyVisitor (/mnt/d/Projects/tree-select/node_modules/vue-eslint-parser/index.js:2653:29)
at Object.registerTemplateBodyVisitor (/mnt/d/Projects/tree-select/node_modules/eslint-plugin-vue/lib/utils/index.js:38:28)
at Object.create (/mnt/d/Projects/tree-select/node_modules/eslint-plugin-vue/lib/rules/no-confusing-v-for-v-if.js:40:9)
at Object.keys.filter.forEach.key (/mnt/d/Projects/tree-select/node_modules/eslint/lib/linter.js:874:67)
at Array.forEach (native)
at Linter.verify (/mnt/d/Projects/tree-select/node_modules/eslint/lib/linter.js:847:93)
at processText (/mnt/d/Projects/tree-select/node_modules/eslint/lib/cli-engine.js:203:31)
at processFile (/mnt/d/Projects/tree-select/node_modules/eslint/lib/cli-engine.js:245:18)
at executeOnFile (/mnt/d/Projects/tree-select/node_modules/eslint/lib/cli-engine.js:585:25)
I have tried downgrading ESLint to 4.3.0 and it solves the problem. So I guess it’s related to the latest release of ESLint.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:8
Top Results From Across the Web
Compatibility with ESLint 4 · Issue #21 · vuejs/eslint-plugin-vue
ESLint released its v4, and I released a v3 of my plugin to support it. ... eslint-plugin-html error: It seems that eslint is...
Read more >8.0.0 Failed to load plugin '@typescript-eslint' - Stack Overflow
There is probably an ESM compatibility problem with one of the packages, so either you must make sure all your deps are ESM...
Read more >eslint - UNPKG
21 ; 22, ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code. In many ways, it is similar...
Read more >Migrating to v4.0.0 - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >eslint_d - npm
As of v7.2.0 , you can use eslint_d with multiple projects depending on different versions of eslint. Supported versions are 4.0+, 5.0+, 6.0+...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
PR. https://github.com/mysticatea/vue-eslint-parser/pull/13
thanx