app').If you get an inaccuracy along with TS, try make use of( Vue3Spline, name: "Vue3Spline" ).To specify worldwide elements for Volar type-checking you will certainly need to have to include:.// components.d.ts.state component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to make use of:.app.use( Vue3Spline, title: 'SplineAnimation')// make use of in theme.label strand (default: 'Vue3Spline') - set custom element name.Conversely you may also import the component regionally.import Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You can then utilize the element in your theme.
Nuxt 3.This is still speculative. Will be actually improved very soon.You may install vue3-spline over anecdote or npm. spline-runtime is a dependency of vue3-spline and also must be actually instantly put up when you install vue3-spline.If you are actually utilizing npm:.npm set up vue3-spline@latest-- save.If you are using anecdote:.yarn include vue3-spline@latest.Make a folder contacted plugins at the root of your venture.Make a documents named Vue3Spline.client.ts inside the plugins directory.Incorporate the complying with code to the Vue3Spline.client.ts file.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get a mistake along with TS, try usage( Vue3Spline, label: "Vue3Spline" ).This should enroll as an international element that you may call throughout your app under the tag.I would certainly advise utilizing a moms and dad tag to make certain that the computer animation merely bunches in on the client side.
Github.