akxcv / vuera

:eyes: Vue in React, React in Vue. Seamless integration of the two. :dancers:
MIT License
4.3k stars 242 forks source link

Cant make it run in vue 2.5 #156

Open 402Martin opened 2 years ago

402Martin commented 2 years ago

``Hello, I am currently migrating from a vue app into a react app, and therefore i want to start adding some react component inside react.

I am trying To add a test react compoent to my Home.vue:

<template class='body-home'>
  <test />
</template>

import test from "./test"
@Component({
  components: { EvensmallerBriefCardLong, BriefCard, CaseStudyBlock, 'Test':Test },
})

export default class Home extends Vue {
//More code on here
}

In my Test.js

import React from 'react'
const Test = () => {
    return (
        <div>test 1234</div>
    );
}

export default Test; 

.babelrc image

Console errors:

image

image