Here is the code snippet for my component:
<template>
<uploader class="uploader-example">
<uploader-unsupport></uploader-unsupport>
<uploader-drop>
<p>Drop files here to upload or</p>
<uploader-btn>select files</uploader-btn>
<uploader-btn :directory="true">select folder</uploader-btn>
</uploader-drop>
<uploader-list></uploader-list>
</uploader>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import uploader from 'vue-simple-uploader';
@Component({
components: {
Uploader: uploader,
},
})
export default class In extends Vue {
}
</script>
This is how my shims-vue.d.ts file is structured:
declare module '*.vue' {
import Vue from 'vue';
export default Vue;
}
declare module 'vue-simple-uploader';
After implementing the above code, I encountered the following error:
[Vue warn]: Failed to mount component: template or render function not defined.
In addition, the uploader component is not being rendered as expected.
I utilized the package available at: