-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
1.3.10
Environment
MacOS 10.14.5, chrome, vue-cli-3.8.4 and use it to create the minimal reproduction
Reproduction link
https://github.com/weixiao-huang/vue-antd-ui-demo
Steps to reproduce
yarn
yarn serve
What is expected?
App running at:
- Local: http://localhost:8080/
- Network: unavailable
Note that the development build is not optimized.
To create a production build, run yarn build.
What is actually happening?
App running at:
- Local: http://localhost:8080/
- Network: unavailable
Note that the development build is not optimized.
To create a production build, run yarn build.
ERROR in /Users/weixiaohuang/Programs/Web/vue-antd-ui-demo/node_modules/ant-design-vue/types/message.d.ts
81:5 Subsequent property declarations must have the same type. Property '$message' must be of type 'ElMessage', but here has type 'Message'.
79 | declare module 'vue/types/vue' {
80 | interface Vue {
> 81 | $message: Message;
| ^
82 | }
83 | }
84 |
ERROR in /Users/weixiaohuang/Programs/Web/vue-antd-ui-demo/node_modules/ant-design-vue/types/modal.d.ts
297:5 Subsequent property declarations must have the same type. Property '$confirm' must be of type 'ElMessageBoxShortcutMethod', but here has type '(modalOptios: ModalOptions) => ModalConfirm'.
295 | $error: (modalOptios: ModalOptions) => ModalConfirm;
296 | $warning: (modalOptios: ModalOptions) => ModalConfirm;
> 297 | $confirm: (modalOptios: ModalOptions) => ModalConfirm;
| ^
298 | }
299 | }
300 |
Version: typescript 3.5.2
Time: 3113ms
This may be the conflict of the same type augmentation from element-ui and ant-design-vue, but I don't know how to resolve this problem
vic-lsh