Skip to main content

vite Two output files share the same path but have different contents:node_modules.vite\processing

这个报错是因为同插件重复命名

例如:

  1. 导入vuex 时将V大写 import xxx from 'Vuex'
  2. 此时根目录下node_modules.vite\deps文件夹 创建了vueX.js
  3. 改回import xxx from 'vuex' 此时又小写v
  4. 报错Two output files share the same path but have different contents:node_modules.vite\processing
解决方案 同名插件命名一致,并将原先的node_modules.vite\deps下的文件 全部删除。