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
// @ts-nocheck// This file is generated by Umi automatically// DO NOT CHANGE IT MANUALLY!import{ClickToComponent}from'click-to-react-component';importReactfrom'react';constpathModifier=(path)=>{returnpath.startsWith('D:\Project_React\umi-demo') ? path : 'D:\Project_React\umi-demo/'+path;}exportfunctionrootContainer(container,opts){returnReact.createElement((props)=>{return(<><ClickToComponenteditor="vscode"pathModifier={pathModifier}/>{props.children}</>);},opts,container,);}
Context
Umi Version: v4.4.6
Node Version: v22.12.0
Platform: window 11
The text was updated successfully, but these errors were encountered:
报错信息
info - Umi v4.4.6
info - Preparing...
X [ERROR] Syntax error "m"
fatal - Error: Build failed with 1 error:
src/.umi/plugin-clickToComponent/runtime.tsx:8:44: ERROR: Syntax error "m"
at failureErrorWithLog (D:\Project_React\umi-demo\node_modules.pnpm\esbuild@0.21.4\node_modules\esbuild\lib\main.js:1472:15)
at D:\Project_React\umi-demo\node_modules.pnpm\esbuild@0.21.4\node_modules\esbuild\lib\main.js:945:25
at D:\Project_React\umi-demo\node_modules.pnpm\esbuild@0.21.4\node_modules\esbuild\lib\main.js:1353:9
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
errors: [Getter/Setter],
warnings: [Getter/Setter]
}
在config.ts 中配置了 clickToComponent:{} 后就报错了
经过检查,发现是 .umi 自动生成的文件出现异常,导致了无法正常运行
文件路径:src.umi\plugin-clickToComponent\runtime.tsx
文件内容:
Context
The text was updated successfully, but these errors were encountered: