datavane/datavines

[Bug] [datavines-ui] 前端编译打包失败 TS2739: Type '{}' is missing the following properties from type

ZForest000 opened this issue · 0 comments

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

使用 mvn clean package -Prelease 命令构建项目到 datavines-ui 模块时报错,详细报错信息在附件,主要是下面这种类型错误
[INFO] ERROR in ./src/view/Main/Warning/SLAsNoticeList/SLAsList.tsx:147:36 [INFO] TS2739: Type '{}' is missing the following properties from type 'Pick<AntdIconProps, "type" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "download" | "children" | "size" | "pattern" | ... 348 more ... | "twoToneColor">': onPointerEnterCapture, onPointerLeaveCapture

error_info.txt

DataVines Version

dev 分支的 74b7ba4 提交

DataVines Config

默认

Running Command

mvn clean package -Prelease

Error Exception

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  41.409 s
[INFO] Finished at: 2024-03-15T09:45:45+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.1:npm (npm run build:prod) on project datavines-ui: Failed to run task: 'npm run build:prod' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :datavines-ui

Engine Type

No response

Java Version

No response

Screenshots

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!