Skip to content

Overwrite/Extend components from imported Vue App #9881

Discussion options

You must be logged in to vote

These types of errors usually indicate that there's two copies of vue involved. that can happen when you use components or other code that imports Vue apis from their respective node_modules folders.

That needs to be resolved so that all code within an app refers to the same single copy of vue. How to resolve that can differ depending on your project's setup.

When using Vite, the issue can often be reolved by using the dedupe option in the consuming application

resolve: {
  dedupe: ['vue']
}

Other setups might require different solutions.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SweckEUW
Comment options

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