app').If you acquire an error with TS, try use( Vue3Spline, name: "Vue3Spline" ).To describe global elements for Volar type-checking you will certainly need to have to add:.// components.d.ts.proclaim module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename element to utilize:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in template.name strand (nonpayment: 'Vue3Spline') - specified customized component label.Alternatively you can likewise import the part regionally.bring in Vue3Spline from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can at that point utilize the part in your template.
Nuxt 3.This is still speculative. Will definitely be upgraded very soon.You may mount vue3-spline over yarn or even npm. spline-runtime is an addiction of vue3-spline as well as ought to be immediately set up when you set up vue3-spline.If you are making use of npm:.npm install vue3-spline@latest-- spare.If you are using anecdote:.yarn incorporate vue3-spline@latest.Produce a directory called plugins at the origin of your job.Create a report called Vue3Spline.client.ts inside the plugins listing.Include the observing code to the Vue3Spline.client.ts documents.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an error along with TS, attempt use( Vue3Spline, label: "Vue3Spline" ).This should sign up as a global component that you may name anywhere in your app under the tag.I would recommend making use of a moms and dad tag to guarantee that the computer animation simply lots know the customer side.
Github.