Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Cant make it run in vue 2.5 #156

Open
402Martin opened this issue May 3, 2022 · 0 comments
Open

Cant make it run in vue 2.5 #156

402Martin opened this issue May 3, 2022 · 0 comments

Comments

@402Martin
Copy link

402Martin commented May 3, 2022

``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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant