Open samturrell opened 2 years ago
I just started the project and found the error. If you want to change the default import-source of vue, use resolve.alias
instead.
export default defineConfig({
plugins: [
vue(),
],
resolve: {
alias: {
vue: 'vue/dist/vue.js'
}
}
})
Directly import from vue/dist/vue.js
will split the relations among the dependencies, which result in multi instance exception.
Hi, i'm trying to use this plugin for a vue 2 app via vite, but it appears to be pulling in two versions of vue:
it also throws the following errors in the console when the input is updated, which i assume is related
This issue can be reproduced in this example by running
yarn dev
https://github.com/samturrell/vite-issue
Hopefully somebody can help? I'm at a bit of a loss here.
I'm having to pull in
import Vue from 'vue/dist/vue.js';
rather than justvue
otherwise it errors withI feel like this might also be related, but i'm not sure what else i need to do.