question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unrecognized <Col> tags

See original GitHub issue

Tell us about your environment

  • ESLint Version:^4.19.1
  • eslint-plugin-vue Version:^4.7.1
  • Node Version:v9.4.0

Please show your full configuration:

// eslintrc.js
module.exports = {
  "root": true,
  "env": {
    "browser": true,
    "es6": true,
    "commonjs": true,
    "node": true,
  },
  "parserOptions": {
    "parser": 'babel-eslint'
  },
  "extends": [
    "plugin:vue/recommended",
    "eslint:recommended",
    "standard"
  ],
  "plugins": [
    "vue",
  ],
  "rules": {
    "no-console": 0,
    "indent": [1, 4, {
      "SwitchCase": 1
    }],
    "key-spacing": [1, {
      "align": {}
    }],
    "max-len": [1, {
      "code": 200,
    }],
    "newline-per-chained-call": [1, {
      "ignoreChainWithDepth": 3
    }],
    "operator-linebreak": [1, "before"],
    "require-jsdoc": [1, { 
      "require": {
        "FunctionDeclaration": true,
        "MethodDefinition": true,
        "ClassDeclaration": true,
        "ArrowFunctionExpression": true,
        "FunctionExpression": false
      }
    }],
    "vue/html-self-closing": [1, {
      "html": { 
        "void": "always",
        "normal": "always",
        "component": "always"
      },
      "svg": "always",
      "math": "always"
    }],
    "vue/html-indent": [1, 4, {
      "attribute": 1,
      "closeBracket": 0,
      "alignAttributesVertically": true,
      "ignores": []
    }],
    "vue/max-attributes-per-line": [1, {
      "singleline": 7,
      "multiline": {
        "max": 7,
        "allowFirstLine": false
      }
    }],
    "vue/order-in-components":0,
    "vue/attributes-order":0,
  }
};



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

<template>
  <section>
    <div>
      <Form>
        <Row>
           //  ----- fix before -----
           <Col></Col>  // <= 被识别成了无内容的<col> 然后分别被fix成<Col/>和 </Col>
          // -------fix after ------
           // => <Col /> </Col> 
        </Row>
      <Form>
    </div>
  </section>
</template>



What did you expect to happen?

Normal typesetting What actually happened? Please include the actual, raw output from ESLint. [eslint] Require self-closing on HTML void elements (<Col>). (vue/html-self-closing) [vue/no-parsing-error] Parsing error: x-invalid-end-tag.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
Justineocommented, Oct 18, 2018

Unfortunately it is the naming convention for a very popular component library - iView. Its users may come across such issue over and over again. 😅

3reactions
armano2commented, Oct 13, 2018

For last issue I checked why col is not valid, because it’s void element in html5, this plugin is using list defined in https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/utils/void-elements.json

The col element is a void element. A col element must have a start tag but must not have an end tag.

ref:

You have to change name of component if you want to use it in this way

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unrecognized name 'column' when using _TABLE_SUFFIX in ...
I would like to run a query on the first set of tables, which contain a column named term which is not contained...
Read more >
Why do I get the error "Unrecognized function or variable"?
5) Trying to use a function for which you are not licensed or that belongs to a MathWorks toolbox that isn't installed. In...
Read more >
Smarty Error: Unrecognized tag - CS-Cart Documentation
If you get the “unrecognized tag...” Smarty error after adding a JavaScript code (for example, a tracking code) to a template, the inserted...
Read more >
Language Guide (proto3) | Protocol Buffers - Google Developers
During deserialization, unrecognized enum values will be preserved in the message, though how this is represented when the message is deserialized is language- ......
Read more >
NG8001: Unknown HTML element or component - Angular
One or more elements cannot be resolved during compilation because the element is not defined by the HTML spec, or there is no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found