Skip to content

Error while trying to use eslint-plugin-vue #14

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

Closed
sudo-suhas opened this issue Aug 6, 2017 · 0 comments · Fixed by #13
Closed

Error while trying to use eslint-plugin-vue #14

sudo-suhas opened this issue Aug 6, 2017 · 0 comments · Fixed by #13

Comments

@sudo-suhas
Copy link

Stack trace including debug output:

$ eslint .
eslint:cli Running on files +0ms
  eslint:glob-util Creating list of files to process. +0ms
  eslint:ignored-paths Looking for ignore file in E:\Projects\repos\eslint-config-chatur\fixtures\browser +16ms
  eslint:ignored-paths Could not find ignore file in cwd +0ms
  eslint:cli-engine Processing E:\Projects\repos\eslint-config-chatur\fixtures\browser\index.js +0ms
  eslint:cli-engine Linting E:\Projects\repos\eslint-config-chatur\fixtures\browser\index.js +0ms
  eslint:config Constructing config file hierarchy for E:\Projects\repos\eslint-config-chatur\fixtures\browser +15ms
  eslint:config Using .eslintrc and package.json files +0ms
  eslint:config Loading E:\Projects\repos\eslint-config-chatur\fixtures\browser\.eslintrc.yml +0ms
  eslint:config-file Loading YAML config file: E:\Projects\repos\eslint-config-chatur\fixtures\browser\.eslintrc.yml +0ms
  eslint:config-file Loading E:\Projects\repos\eslint-config-chatur\lib\plugin-conf\vue.js +94ms
  eslint:config-file Loading JS config file: E:\Projects\repos\eslint-config-chatur\lib\plugin-conf\vue.js +0ms
  eslint:config-file Loading plugin:vue/recommended +60ms
  eslint:config-file Attempting to resolve eslint-plugin-vue +3ms
  eslint:config-file Loading JS config file: E:\Projects\repos\eslint-config-chatur\node_modules\eslint-plugin-vue\lib\index.js +4ms
  eslint:config-file Loading E:\Projects\repos\eslint-config-chatur\node_modules\eslint-plugin-vue\lib\config\base.js +16ms
  eslint:config-file Loading JS config file: E:\Projects\repos\eslint-config-chatur\node_modules\eslint-plugin-vue\lib\config\base.js +0ms
  eslint:config Using E:\Projects\repos\eslint-config-chatur\fixtures\browser\.eslintrc.yml +0ms
  eslint:config-ops Using config from partial cache +0ms
  eslint:config-ops Apply environment settings to config +0ms
  eslint:config-ops Creating config for environment browser +0ms
  eslint:config-ops Creating config for environment es6 +0ms
Error while loading rule 'vue/html-end-tags': Cannot read property 'on' of undefined
TypeError: Error while loading rule 'vue/html-end-tags': Cannot read property 'on' of undefined
    at ensureEmitter (E:\Projects\repos\eslint-config-chatur\node_modules\vue-eslint-parser\index.js:2640:23)
    at Object.registerTemplateBodyVisitor (E:\Projects\repos\eslint-config-chatur\node_modules\vue-eslint-parser\index.js:2653:29)
    at Object.registerTemplateBodyVisitor (E:\Projects\repos\eslint-config-chatur\node_modules\eslint-plugin-vue\lib\utils\index.js:38:28)
    at Object.create (E:\Projects\repos\eslint-config-chatur\node_modules\eslint-plugin-vue\lib\rules\html-end-tags.js:25:9)
    at Object.keys.filter.forEach.key (E:\Projects\repos\eslint-config-chatur\node_modules\eslint\lib\linter.js:874:67)
    at Array.forEach (native)
    at Linter.verify (E:\Projects\repos\eslint-config-chatur\node_modules\eslint\lib\linter.js:847:93)
    at processText (E:\Projects\repos\eslint-config-chatur\node_modules\eslint\lib\cli-engine.js:203:31)
    at processFile (E:\Projects\repos\eslint-config-chatur\node_modules\eslint\lib\cli-engine.js:245:18)
    at executeOnFile (E:\Projects\repos\eslint-config-chatur\node_modules\eslint\lib\cli-engine.js:585:25)

Config:

{
  "extends": [
    "plugin:vue/recommended"
  ],
  "plugins": [
    "vue"
  ],
  "rules": {
    "vue/html-end-tags": "error"
  }
}

More info:

λ node --version
v8.2.1

λ yarn list --flat | grep vue
[email protected]
  [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant