Skip to content

Vue3 + typescript (vue-cli-service): How to create Vue NPM library? #7222

Answered by chenxch
skyhos asked this question in Help/Questions
Discussion options

You must be logged in to vote
import libs from "vue-lib-test-1";

export default defineComponent({
  name: "HomeView",
  components: {
    HelloWorld: libs.HelloWorld,
    ByeWorld,
  },
});

[Vue warn]: Failed to resolve component: HelloWorld
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@chenxch
Comment options

@skyhos
Comment options

@chenxch
Comment options

@skyhos
Comment options

Answer selected by skyhos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants