app').If you acquire an inaccuracy along with TS, try use( Vue3Spline, name: "Vue3Spline" ).To determine global components for Volar type-checking you will certainly require to add:.// components.d.ts.proclaim element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename component to make use of:.app.use( Vue3Spline, name: 'SplineAnimation')// make use of in template.label string (nonpayment: 'Vue3Spline') - prepared customized component title.As an alternative you can additionally import the part in your area.bring in Vue3Spline from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can easily then make use of the component in your template.
Nuxt 3.This is still speculative. Will definitely be upgraded soon.You can install vue3-spline over anecdote or even npm. spline-runtime is an addiction of vue3-spline and should be immediately set up when you install vue3-spline.If you are using npm:.npm install vue3-spline@latest-- save.If you are actually utilizing anecdote:.anecdote incorporate vue3-spline@latest.Produce a folder contacted plugins at the root of your project.Create a file named Vue3Spline.client.ts inside the plugins listing.Include the observing code to the Vue3Spline.client.ts report.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get a mistake with TS, make an effort use( Vue3Spline, name: "Vue3Spline" ).This must enroll as an international element that you may refer to as throughout your application under the tag.I will recommend utilizing a parent tag to make sure that the computer animation only loads know the client edge.
Github.