I'm trying to use Vue in React using the standard usage but it's returning the following error message. It seems like Babel still expects the .vue files to be valid JSX.
It's worth noting that I'm also very new to react, webpack, and everything.
The error:
Module build failed: SyntaxError: Adjacent JSX elements must be wrapped in an enclosing tag (5:0)
3 | </template>
4 |
> 5 | <script>
| ^
6 | export default {
7 | data () {
8 | return {
BabelLoaderError: SyntaxError: Adjacent JSX elements must be wrapped in an enclosing tag (5:0)
3 | </template>
4 |
> 5 | <script>
| ^
6 | export default {
7 | data () {
8 | return {
I'm trying to use Vue in React using the standard usage but it's returning the following error message. It seems like Babel still expects the .vue files to be valid JSX.
It's worth noting that I'm also very new to react, webpack, and everything.
The error:
My babel.rc:
My webpack.config.js: