tedirghazali / select

Tedir Select is a Custom SelectBox, Multiple ListBox, ComboBox Autocomplete, and Tags Input for Vue 3 and Web Components
Other
6 stars 0 forks source link

Issue while importing SelectBox #1

Open iabduul7 opened 1 year ago

iabduul7 commented 1 year ago

Hello, I just installed the package, now I want to import it in one of my *.vue files it says that cannot find the package with the name. What would the solution be if you may help me?

Version: Nuxt3 Vue3

image

tedirghazali commented 1 year ago

okay, I see the problem here, so do you use typescript?, I think you need to add //@ts-ignore on top of that import or you can also create a new file and you can give a name like vendor.d.ts and then add declare module "tedir-select" to it

tedirghazali commented 1 year ago

I have used this package on multiple Laravel+Inertia projects before and some in Nuxt 3 as well, and I still use it to this day for any new project that require custom selection, if you used it on Vue 3 components with JavaScript only, I think it should works