IndexXuan / vue-cli-plugin-vite

Use vite today, with vue-cli.

Home Page:https://github.com/IndexXuan/vue-cli-plugin-vite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

run vite error:DeprecationWarning: 'createIdentifier'……

yangxu52 opened this issue · comments

run npm run vite

before vite output ready in xxxx ms

Loading Vetur in workspace path: D:\code\node\xxxDemo
DeprecationWarning: 'createIdentifier' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.

node:internal/event_target:969 process.nextTick(() => { throw err; });
^ is arrow to throw

Error: Debug Failure. Unhandled SyntaxKind: ImportClause.
at pipelineEmitWithHintWorker (D:\code\node\xxxDemo\node_modules\typescript\lib\typescript.js:114180:22)
at pipelineEmitWithHint (D:\code\node\xxxDemo\node_modules\typescript\lib\typescript.js:113711:17)
at pipelineEmitWithComments (D:\code\node\xxxDemo\node_modules\typescript\lib\typescript.js:117399:13)
at pipelineEmit (D:\code\node\xxxDemo\node_modules\typescript\lib\typescript.js:113651:13)
at emitExpression (D:\code\node\xxxDemo\node_modules\typescript\lib\typescript.js:113635:13)
at emitImportDeclaration (D:\code\node\xxxDemo\node_modules\typescript\lib\typescript.js:115606:13)
at pipelineEmitWithHintWorker (D:\code\node\xxxDemo\node_modules\typescript\lib\typescript.js:113912:32)
at pipelineEmitWithHint (D:\code\node\xxxDemo\node_modules\typescript\lib\typescript.js:113711:17)
at pipelineEmitWithComments (D:\code\node\xxxDemo\node_modules\typescript\lib\typescript.js:117399:13)
at pipelineEmit (D:\code\node\xxxDemo\node_modules\typescript\lib\typescript.js:113651:13)
Emitted 'error' event on Worker instance at:
at Worker.[kOnErrorMessage] (node:internal/worker:290:10)
at Worker.[kOnMessage] (node:internal/worker:301:37)
at MessagePort.<anonymous> (node:internal/worker:202:57)
at MessagePort.[nodejs.internal.kHybridDispatch] (node:internal/event_target:694:20)
at MessagePort.exports.emitMessage (node:internal/per_context/messageport:23:28)

run npm list vite

output

ruoyi@3.7.0 D:\code\node\contract-web
└─┬ vue-cli-plugin-vite@1.5.0
├─┬ @vitejs/plugin-vue@1.9.3
│ └── vite@2.6.7 deduped
├─┬ vite-plugin-checker@0.3.4
│ └── vite@2.6.7 deduped
├─┬ vite-plugin-eslint@1.3.0
│ └── vite@2.6.7 deduped
├─┬ vite-plugin-vue-cli@1.4.1
│ └── vite@2.6.7 deduped invalid: "~2.0.0" from node_modules/vite-plugin-vue-cli
├─┬ vite-plugin-vue2@1.8.2
│ └── vite@2.6.7 deduped invalid: "~2.0.0" from node_modules/vite-plugin-vue-cli
└── vite@2.6.7 invalid: "~2.0.0" from node_modules/vite-plugin-vue-cli