Skip to content

Error while loading rule 'vue/no-confusing-v-for-v-if': Cannot convert undefined or null to object #183

@tereshhhchenko

Description

@tereshhhchenko

Error while loading rule 'vue/no-confusing-v-for-v-if': Cannot convert undefined or null to object

Tell us about your environment

  • ESLint Version: 3.19.0
  • eslint-plugin-vue Version: 3.13.0
  • Node Version: 8.4.0

I'm using ESLint in Visual Studio Code. But the same issue appears in console.

Please show your full configuration:

{
  "extends": ["airbnb-base", "plugin:vue/recommended"],
  "plugins": ["vue", "html", "class-property"],
  "parser": "vue-eslint-parser",
  "parserOptions": {
    "parser": "babel-eslint",
    "ecmaVersion": 2017,
    "sourceType": "module"
  },
  "rules": {
    "import/no-unresolved": 0,
    "import/no-unassigned-import": 0,
    "import/no-extraneous-dependencies": 0,
    "import/extensions": 0,
    "class-property/rule-name": 2
  }
}

What did you do? Please include the actual source code causing the issue.

I don't have any v-if or v-for in the project. Eslint simply never starts to lint in this conditions.

What did you expect to happen?

It starts linting

What actually happened? Please include the actual, raw output from ESLint.

> eslint client/**/*.{vue,js}

Error while loading rule 'vue/no-confusing-v-for-v-if': Cannot convert undefined or null to object
TypeError: Error while loading rule 'vue/no-confusing-v-for-v-if': Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Object.keys.filter.forEach.key (/home/s/Git/decompose/node_modules/eslint/lib/eslint.js:872:28)
    at Array.forEach (<anonymous>)
    at EventEmitter.module.exports.api.verify (/home/s/Git/decompose/node_modules/eslint/lib/eslint.js:841:93)
    at localVerify (/home/s/Git/decompose/node_modules/eslint-plugin-html/src/index.js:107:14)
    at EventEmitter.eslint.verify (/home/s/Git/decompose/node_modules/eslint-plugin-html/src/index.js:147:18)
    at processText (/home/s/Git/decompose/node_modules/eslint/lib/cli-engine.js:264:31)
    at processFile (/home/s/Git/decompose/node_modules/eslint/lib/cli-engine.js:303:18)
    at executeOnFile (/home/s/Git/decompose/node_modules/eslint/lib/cli-engine.js:672:25)
    at fileList.forEach.fileInfo (/home/s/Git/decompose/node_modules/eslint/lib/cli-engine.js:710:13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions