X [ERROR] Two output files share the same path but have different contents: node_modules\.vite\deps_temp_cb676b7c\Vue.js
D:\front\_other\hole\node_modules\esbuild\lib\main.js:1636
let error = new Error(`${text}${summary}`);
^
Error: Build failed with 1 error:
error: Two output files share the same path but have different contents: node_modules\.vite\deps_temp_cb676b7c\Vue.js
at failureErrorWithLog (D:\front\_other\hole\node_modules\esbuild\lib\main.js:1636:15)
at D:\front\_other\hole\node_modules\esbuild\lib\main.js:1048:25
at D:\front\_other\hole\node_modules\esbuild\lib\main.js:1512:9
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errors: [
{
detail: undefined,
id: '',
location: null,
notes: [],
pluginName: '',
text: 'Two output files share the same path but have different contents: node_modules\\.vite\\deps_temp_cb676b7c\\Vue.js'
}
],
warnings: []
}
找了半天终于找到原因
import { nextTick, provide, ref } from “Vue”
把 “Vue” 改成 “vue” 就可以了