Thunberg087 / vue-fragment

a very candide fragment component for Vue.js
http://jsfiddle.net/cdkn5wL3/
670 stars 51 forks source link

Failed to mount component: #47

Open alucardu opened 4 years ago

alucardu commented 4 years ago

I'm trying to use the fragment plugin with my TypeScript Vue app created with Vue CLI:

<script lang="ts">
import { Vue, Component } from 'vue-property-decorator';
import Fragment from 'vue-fragment';

@Component({
  components: {
    Fragment,
  },
})
export default class MovieSearchComponent extends Vue {}
</script>

<template>
  <Fragment>
    <div>sometekst</div>
  </Fragment>
</template>

image

I've created a shims-fraagment.d.ts file in my ./src folder:

 declare module 'vue-fragment';
jevgenigavrilov commented 3 years ago

Same issue here. @alucardu did you manage to find a solution?

ArieBisfki commented 3 years ago

Try importing like this:

import { Fragment }

instead of:

import Fragment