apache / dolphinscheduler

Apache DolphinScheduler is the modern data orchestration platform. Agile to create high performance workflow with low-code
https://dolphinscheduler.apache.org/
Apache License 2.0
12.88k stars 4.63k forks source link

Front-end packaging error #16387

Closed liusy-bd closed 3 months ago

liusy-bd commented 3 months ago

Search before asking

What happened

Front-end packaging error

image

What you expected to happen

Added code review mechanism?

How to reproduce

[root@LAPTOP-KAHM10NT dolphinscheduler-ui]# npm run build:prod

dolphinscheduler-ui@0.0.0 build:prod vue-tsc --noEmit && vite build --mode production

src/App.tsx:74:33 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.

74 {this.isRouterAlive ? : ''}


src/components/chart/modules/Bar.tsx:90:7 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.

 90       <div

91 ref='barChartRef'

...
 95         }}

96 />



src/components/chart/modules/Gauge.tsx:132:7 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.

### Anything else

_No response_

### Version

3.2.x

### Are you willing to submit PR?

- [ ] Yes I am willing to submit a PR!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
SbloodyS commented 3 months ago

Please correct the title and describe the issue clearly. I don't quite understand what your question is. @liusy-bd

liusy-bd commented 3 months ago

请更正标题并清楚描述问题。我不太明白你的问题是什么。@liusy-bd

image

dolphinscheduler-ui run 【npm run build:prod】 error

Gallardot commented 3 months ago

please have a try like this

pnpm run build:prod

It is OK on my environment.

liusy-bd commented 3 months ago

请尝试一下

pnpm run build:prod

在我的环境中这是正常的。

image Same error

liusy-bd commented 3 months ago

请尝试一下

pnpm run build:prod

在我的环境中这是正常的。

image It's okay that I removed the type check, That seems to be the problem