app').If you obtain an inaccuracy along with TS, attempt use( Vue3Spline, label: "Vue3Spline" ).To describe global parts for Volar type-checking you will need to include:.// components.d.ts.announce component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename part to make use of:.app.use( Vue3Spline, title: 'SplineAnimation')// use in design template.label strand (nonpayment: 'Vue3Spline') - prepared custom part label.As an alternative you may also import the part regionally.bring in Vue3Spline from 'vue3-spline'.export default parts: Vue3Spline,.,.You can easily at that point make use of the part in your theme.
Nuxt 3.This is actually still speculative. Are going to be improved very soon.You can mount vue3-spline over anecdote or even npm. spline-runtime is actually a dependency of vue3-spline and also ought to be automatically put in when you put in vue3-spline.If you are actually using npm:.npm put in vue3-spline@latest-- conserve.If you are actually using yarn:.yarn add vue3-spline@latest.Make a folder called plugins at the root of your project.Produce a documents called Vue3Spline.client.ts inside the plugins listing.Incorporate the observing code to the Vue3Spline.client.ts file.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an inaccuracy with TS, make an effort make use of( Vue3Spline, name: "Vue3Spline" ).This must sign up as an international component that you can name throughout your application under the tag.I would certainly encourage utilizing a parent tag to ensure that the computer animation simply loads in on the client side.
Github.