You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我的项目中使用6.0.6,在打包时会出现报错(pure name):1:0: ERROR: Expected identifier but found "debugger"
回退到6.0.5则没有报错了
完整报错信息:
error during build:
[vite:build-html] Transform failed with 1 error:
(pure name):1:0: ERROR: Expected identifier but found "debugger"
file: D:/code/qzk/qzk-admin/index.html:1:0
Expected identifier but found "debugger"
1 | import './polyfill';
| ^
2 | import { createApp } from 'vue';
3 | import App from './App.vue';
at failureErrorWithLog (D:\code\qzk\qzk-admin\node_modules\.pnpm\[email protected]\node_modules\esbuild\lib\main.js:1476:15)
at D:\code\qzk\qzk-admin\node_modules\.pnpm\[email protected]\node_modules\esbuild\lib\main.js:755:50
at responseCallbacks.<computed> (D:\code\qzk\qzk-admin\node_modules\.pnpm\[email protected]\node_modules\esbuild\lib\main.js:622:9)
at handleIncomingPacket (D:\code\qzk\qzk-admin\node_modules\.pnpm\[email protected]\node_modules\esbuild\lib\main.js:677:12)
at Socket.readFromStdout (D:\code\qzk\qzk-admin\node_modules\.pnpm\[email protected]\node_modules\esbuild\lib\main.js:600:7)
at Socket.emit (node:events:518:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at Readable.push (node:internal/streams/readable:392:5)
at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)
ELIFECYCLE Command failed with exit code 1.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
我的项目中使用
6.0.6
,在打包时会出现报错(pure name):1:0: ERROR: Expected identifier but found "debugger"
回退到
6.0.5
则没有报错了完整报错信息:
Reproduction
https://github.com/eamd-wq/vite-bug-demo
Steps to reproduce
pnpm i
pnpm build
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: