Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag
See original GitHub issueTell 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:
- Created 6 years ago
- Reactions:13
- Comments:10 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
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
I just fixed all my issues with this: https://github.com/vuejs/eslint-plugin-vue/issues/186#issuecomment-329426553
missing
/vue
. closing.