Skip to content

[Question] [Module Name] When dolphinscheduler-ui runs the pnpm run build:prod command, an assignment type error occurs. #16601

@oicq1699

Description

@oicq1699

Search before asking

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

What happened

dolphinscheduler-3.2.2-release

dolphinscheduler-ui model,run pnpm run build:prod,Reported some errors:

src/views/projects/workflow/definition/timing/index.tsx:122:11 - error TS2322: Type 'boolean | Ref<boolean, boolean>' is not assignable to type 'boolean | undefined'.
...
src/views/projects/workflow/definition/timing/index.tsx:123:11 - error TS2322: Type 'string | Ref<string, string>' is not assignable to type 'string | undefined'.
...
src/views/projects/workflow/timing/index.tsx:117:11 - error TS2322: Type 'boolean | Ref<boolean, boolean>' is not assignable to type 'boolean | undefined'.
...
src/views/projects/workflow/timing/index.tsx:118:11 - error TS2322: Type 'string | Ref<string, string>' is not assignable to type 'string | undefined'.
...

Found 8 errors in 4 files.

Errors Files
2 src/views/projects/task/definition/batch-task.tsx:220
2 src/views/projects/workflow/definition/index.tsx:326
2 src/views/projects/workflow/definition/timing/index.tsx:122
2 src/views/projects/workflow/timing/index.tsx:117

What you expected to happen

ts type error

How to reproduce

1、download dolphinscheduler-3.2.2-release
2、install node18 and pnpm
3、 in dolphinscheduler-ui model,run pnpm run build:prod

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalequestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions