Skip to content

2.x use vite build Error cascader/index.d.ts:307:13 type error #3895

@reaink

Description

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

Version

2.1.1

Environment

manjaro linux, chrome 89, "vue": "^3.0.5", "vite": "^2.1.5", "vue-tsc": "^0.0.15", "ant-design-vue": "^2.1.2",

Steps to reproduce

npm init @vitejs/app my-vue-app -- --template vue-ts
npm i
npm i -S ant-design-vue@next
npm run build

vue-tsc --noEmit && vite build

node_modules/.pnpm/ant-design-vue@2.1.2_8c46f6c1080be7f80954bdf18f02ae8b/node_modules/ant-design-vue/lib/cascader/index.d.ts:307:13 - error TS2411: Property 'disabled' of type 'boolean' is not assignable to string index type 'void | Element'.

307 disabled: boolean;



Found 1 error.

ERROR  Command failed with exit code 2.

### What is expected?
packaged

### What is actually happening?
packaging error



        

<!-- generated by issue-helper. DO NOT REMOVE -->

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