Skip to content

typescript : cannot find module 'vue-select' #443

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

Open
IParthJoshi opened this issue Jan 30, 2018 · 3 comments
Open

typescript : cannot find module 'vue-select' #443

IParthJoshi opened this issue Jan 30, 2018 · 3 comments

Comments

@IParthJoshi
Copy link

I have typescript application where I want to use vue-select and when I try to register it globally, I get typescript error saying cannot find module 'vue-select'. Below is attached main.ts file pic.
vue-select

I have tried a workaround by adding this code declare module 'vue-select'; to a shim.d.ts file and is now not showing cannot find module 'vue-select' error. Still need to test if component is working or not. below is what I did.
vue-selectmodule
Please suggest a proper solution to it.

@TrabacchinLuigi
Copy link

Same problem here, i did the same and it actually seems to work, not really elegant btw.

@sagalbot
Copy link
Owner

#262

@atilleul
Copy link

We have added an index.d.ts file in our application containing this minimal definition

declare module "vue-select" {
    import Vue from "vue";

    export default class VSelect extends Vue {}
}

until @types/vue-select implements the new v4.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants