Currently, I am facing an issue while trying to implement vue-social-sharing in my project. The error message I receive is "Component is missing template or render function." Below is a snippet of my main.js file:
import {library} from '@fortawesome/fontawesome-svg-core';
import {fas} from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import VueSocialShare from 'vue-social-sharing';
window.addEventListener('load', () => {
const VueApp = require('./App.vue').default;
const app = createApp({
components: { VueApp},
template: document.querySelector('#app')!.innerHTML,
});
library.add(fas);
app
.component('font-awesome-icon', FontAwesomeIcon)
.component('VueSocialShare', VueSocialShare)
.mount('#app');
});
Furthermore, in one of my Vue files, I have used it as a regular component with the code <VueSocialSharing />
I am seeking guidance on how to rectify this issue and convert it into a functional component.