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

form和slot一起使用时vue-tsc报错 #3350

Open
moonwane opened this issue Nov 14, 2024 · 1 comment
Open

form和slot一起使用时vue-tsc报错 #3350

moonwane opened this issue Nov 14, 2024 · 1 comment

Comments

@moonwane
Copy link

Basic Info

Extra info

bug复现前提:

  1. 使用pnpm
  2. 给form组件设置ref
  3. 和form同级或在form内使用slot

临时解决方案:
方案a. 在tsconfig中设置declaration为false(或关闭composite等强制启用declaration的选项)
方案b. 引入 scroll-into-view-if-need@^2.2.28 ,并在项目中引用 scroll-into-view-if-need 的类型声明。

参考:
microsoft/TypeScript#47663 (comment)

Steps to reproduce

pnpm type-check

image

@lin-97
Copy link

lin-97 commented Nov 27, 2024

这个跟组件库没关系

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

2 participants