-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to install in nuxt project? #4
Comments
There is no option to install vuesax anymore in nuxt, and it was for old vuesax anyway, but i guess you can get inspiration from the old nuxt template : it's for vue2, but i think the same principles apply for vue3 : import Vuesax from 'vuesax3';
import 'vuesax3/dist/vuesax.css' ;
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(Vuesax)
}) and then you simply use the vuesax components in your pages/components |
@lk77 Thanks for the solution.
I had to edit the module declaration to make Vuesax working.
Not sure whether this modification is recommended... |
@yuyanghh i guess i could do that :
in the meantime i think you can do :
it should not complain anymore |
Yes! The warning is gone! Thanks a lot! |
@yuyanghh i published an alpha version https://www.npmjs.com/package/vuesax3/v/4.3.0-alpha.0 with the changes to index.d.ts among other things, could you try it and tell me if your issue is fixed without the |
@lk77 Thanks a lot for the update. It fixed the issue. |
I want use vuesax in nuxt, how to install it?
The text was updated successfully, but these errors were encountered: