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.

Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag

See original GitHub issue

Tell us about your environment

  • ESLint Version: v4.7.1
  • eslint-plugin-vue Version: 3.10.0
  • Node Version: v8.4.0

Please show your full configuration: @yonyou-cloud/eslint-config

module.exports = {
  extends: ['./base.js', 'plugin:vue/recommended']
}




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

<style>
</style>

<template>
<div>
    <group>
        <cell title="title" value="value"></cell>
    </group>
</div>
</template>

<script>
import {Group, Cell} from 'vux'

export default {
    components: {
        Group,
        Cell
    }
}
</script>





What did you expect to happen? no error. What actually happened? Please include the actual, raw output from ESLint. error Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag

a simple repro can run npm run lint in vux-demo

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:13
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

14reactions
jeremyjhcommented, Dec 10, 2017
11reactions
aladdin-addcommented, Sep 20, 2017

missing /vue. closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adjacent JSX elements must be wrapped in an enclosing tag ...
You should put your component between an enclosing tag, Which means: ... Parse Error: Adjacent JSX elements must be wrapped in an enclosing...
Read more >
Adjacent JSX elements must be wrapped in an enclosing tag
The reason for the error is that when we use the render method it can only take a single HTML element. That means...
Read more >
How to Fix 'JSX element must be wrapped in enclosing tag'
The "Adjacent JSX elements must be wrapped in an enclosing tag" error happens in React, whenever you try to return more than one...
Read more >
Adjacent JSX elements must be wrapped in an enclosing tag
The cause of the "Adjacent JSX elements must be wrapped in an enclosing tag" error is that it's invalid syntax to return multiple...
Read more >
Parse Error Adjacent JSX elements must be wrapped in an ...
I am trying to set up my React.js app so that it only renders if a variable I have set is true. The...
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