Skip to content

compile error #6330

@duanhjlt

Description

@duanhjlt
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.14

Environment

node v16.13.0

Reproduction link

https://github.com/vueComponent/ant-design-vue

Steps to reproduce

yarn
yarn compile

What is expected?

compile success

What is actually happening?

antd-tools run compile
start compile at 2023-03-03T13:48:44.569Z
[Parallel] Compile to es...
[Parallel] Compile to js...
components/mentions/index.tsx(207,47): error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type '{ name: string; props: { value: StringConstructor; disabled: BooleanConstructor; label: (FunctionConstructor | StringConstructor | NumberConstructor)[]; }; ... 58 more ...; tabindex?: string | number; }' is not assignable to parameter of type 'ComponentOptionsWithObjectProps<{ value: StringConstructor; disabled: BooleanConstructor; label: (FunctionConstructor | StringConstructor | NumberConstructor)[]; }, ... 11 more ..., { ...; }>'.
Type '{ name: string; props: { value: StringConstructor; disabled: BooleanConstructor; label: (FunctionConstructor | StringConstructor | NumberConstructor)[]; }; ... 58 more ...; tabindex?: string | number; }' is not assignable to type 'ComponentOptionsBase<Readonly<ExtractPropTypes<{ value: StringConstructor; disabled: BooleanConstructor; label: (FunctionConstructor | StringConstructor | NumberConstructor)[]; }>> & { ...; }, ... 10 more ..., string>'.
Types of property 'emits' are incompatible.
Type '({} | string[]) & ThisType' is not assignable to type 'string[] & ThisType'.
Type 'ThisType' is not assignable to type 'string[] & ThisType'.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions