app').If you obtain an error along with TS, try make use of( Vue3Spline, label: "Vue3Spline" ).To define global parts for Volar type-checking you will certainly require to incorporate:.// components.d.ts.proclaim element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename component to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// usage in template.name strand (nonpayment: 'Vue3Spline') - specified personalized element title.Conversely you may likewise import the element in your area.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can easily at that point use the component in your design template.
Nuxt 3.This is actually still speculative. Will be actually upgraded quickly.You can easily mount vue3-spline over yarn or npm. spline-runtime is actually an addiction of vue3-spline and also should be actually immediately set up when you set up vue3-spline.If you are using npm:.npm put in vue3-spline@latest-- save.If you are actually making use of yarn:.yarn add vue3-spline@latest.Create a directory gotten in touch with plugins at the origin of your task.Make a report called Vue3Spline.client.ts inside the plugins listing.Include the adhering to code to the Vue3Spline.client.ts file.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an inaccuracy with TS, make an effort use( Vue3Spline, title: "Vue3Spline" ).This need to enroll as a global part that you can easily refer to as anywhere in your app under the tag.I would recommend making use of a moms and dad tag to ensure that the computer animation just tons in on the customer edge.
Github.