Open alucardu opened 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>
I've created a shims-fraagment.d.ts file in my ./src folder:
shims-fraagment.d.ts
./src
declare module 'vue-fragment';
Same issue here. @alucardu did you manage to find a solution?
Try importing like this:
import { Fragment }
instead of:
import Fragment
I'm trying to use the fragment plugin with my TypeScript Vue app created with Vue CLI:
I've created a
shims-fraagment.d.ts
file in my./src
folder: