Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

打包时出现Type '() => void' is not assignable to type 'MouseEvent' #194

Closed
1 task
thckbuibuibui opened this issue Oct 27, 2022 · 4 comments
Closed
1 task

Comments

@thckbuibuibui
Copy link

Basic Info

  • Package Name And Version: arco-design-pro-vue@2.5.13
  • Browser: chrome105.0.0.0

What is expected?

Type '() => void' is not assignable to type 'MouseEvent'

@sHow8e
Copy link
Member

sHow8e commented Oct 27, 2022

@thckbuibuibui hihi 两种方法。
1、按照类型提示进行修改。
2、关闭vue-tsc检查。(不推荐)

@thckbuibuibui
Copy link
Author

@sHow8e
报错的内容是模版里自带的组件 例如src/components/message-box/list.vue <div class="item-wrap" @click="onItemClick(item)">

@Chanzhaoyu
Copy link
Contributor

@sHow8e
应该不是代码问题,我也发现了

@thckbuibuibui
应该是更新了 vue 版本的问题,看下这个 issuse 能不能解决你的问题

vuejs/core#6855

@Chanzhaoyu
Copy link
Contributor

@sHow8e 应该不是代码问题,我也发现了

@thckbuibuibui 应该是更新了 vue 版本的问题,看下这个 issuse 能不能解决你的问题

vuejs/core#6855

项目内安装 "@types/node": "18.7.16" 锁定版本可解决这个问题

@sHow8e sHow8e closed this as completed Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants