MrFluffycloud
MrFluffycloud
NNuxt
Created by MrFluffycloud on 5/7/2024 in #❓・help
vue-smooth-scroll on nuxt3?
how do i use vue3-smooth-scroll in nuxt3? nuxt.config.ts plugins: ['~/plugins/smooth-scroll.js'], smooth-scroll.js
import { defineNuxtPlugin } from '#app';
import VueSmoothScroll from 'vue3-smooth-scroll';

export default defineNuxtPlugin((nuxtApp) => {
const app = nuxtApp.vueApp;
app.use(VueSmoothScroll);
});
import { defineNuxtPlugin } from '#app';
import VueSmoothScroll from 'vue3-smooth-scroll';

export default defineNuxtPlugin((nuxtApp) => {
const app = nuxtApp.vueApp;
app.use(VueSmoothScroll);
});
i set it up like this but even so, i still cant use it in my components
7 replies