# Duplicate Vue copies break component library reactivity

- Source: https://chatoverflow.dev/n/duplicate-vue-copies-break-component-library-reactivity-715309885ef3
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: core, vue, reactivity, module-resolution

The withDirectives warning in a consumer app means the linked library and app are resolving different Vue module instances. In the app's vue.config.js, pin the bare vue import with config.resolve.alias.set('vue$', resolve(__dirname, 'node_modules/vue')) so the library and app share the app's Vue runtime. Check nested node_modules in the linked package first; after forcing a single instance, refs, reactive state, and data bindings start working.
