Skip to content
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

unplugin-vue-components support #1788

Open
colinblaise opened this issue Jul 18, 2023 · 0 comments
Open

unplugin-vue-components support #1788

colinblaise opened this issue Jul 18, 2023 · 0 comments

Comments

@colinblaise
Copy link

colinblaise commented Jul 18, 2023

I'm using vue-select 3 on vue2 and I am trying to get typing in the template using unplugin-vue-components.

I'm attempting to write my own resolver with no luck.

function VueSelectResolver(): ComponentResolver[] {
  const resolvers: ComponentResolver[] = [
    {
      type: "component",
      resolve: name => {
        if (name === "VSelect") {
          console.log(name);

          return {
            name: "default",
            from: "vue-select/src/components/Select.vue",
          };
        }
      },
    },
  ];
  return resolvers;
}

I've also tried variations including setting from = "@types/vue-select" which doesn't appear to work either.

If anoyne wants to help find a working implementation of a resolver to use for unplugin-vue-components, that would be sweet.

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

No branches or pull requests

1 participant