Two output files share the same path but have different contents

vue3+vite

X [ERROR] Two output files share the same path but have different contents: node_modules\.vite\deps_temp\Vue.js

下午2:22:59 [vite] error while updating dependencies:
Error: Build failed with 1 error:
error: Two output files share the same path but have different contents: node_modules\.vite\deps_temp\Vue.js
    at failureErrorWithLog (F:\vite-vue3-element-pinia\node_modules\esbuild\lib\main.js:1596:15)
    at F:\vite-vue3-element-pinia\node_modules\esbuild\lib\main.js:1052:28
    at runOnEndCallbacks (F:\vite-vue3-element-pinia\node_modules\esbuild\lib\main.js:1468:61)
    at buildResponseToResult (F:\vite-vue3-element-pinia\node_modules\esbuild\lib\main.js:1050:7)
    at F:\vite-vue3-element-pinia\node_modules\esbuild\lib\main.js:1162:14
    at responseCallbacks. (F:\vite-vue3-element-pinia\node_modules\esbuild\lib\main.js:697:9)
    at handleIncomingPacket (F:\vite-vue3-element-pinia\node_modules\esbuild\lib\main.js:752:9)
    at Socket.readFromStdout (F:\vite-vue3-element-pinia\node_modules\esbuild\lib\main.js:673:7)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)

我的原因是遍历表格的表头时候使用computed属性返回表头导致报错,直接定义成变量报错消失


  



                    
                    

你可能感兴趣的:(javascript,前端,vue.js)