-
-
Notifications
You must be signed in to change notification settings - Fork 426
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
2.2.2升级后,vue3.5.5 出现ts大面积爆红 #5196
Comments
Please provide a minimal reproduction. |
what |
经过我得反复测试 跟这个Splitpanes 插件有关 当我为Splitpanes组件指定ref时,vue版本为3.5.5,插件为2.2.2时可以稳定复现 |
这个组件是放在 |
使用 export type Props {},然后 defineProps(); |
splitpanes是一个第三方库 https://antoniandre.github.io/splitpanes/ |
麻烦提供一个最小复现片段。 |
可能是 vue3 使用 尝试移除依赖后手动添加声明 |
I think this issue is likely a variant of #5186 that has been fixed. Will close it unless there is new evidence indicating that these are two different issues. |
Vue - Official extension or vue-tsc version
2.2.2
VSCode version
1.97.1
Vue version
3.5.5
TypeScript version
5.3.3
System Info
package.json dependencies
Steps to reproduce
相应版本下编辑器即可浮现
如果没有引用 ".pnpm/[email protected]/node_modules/vue",则无法命名 "__VLS_37" 的推断类型。这很可能不可移植。需要类型注释。ts-plugin(2742)
如果没有引用 ".pnpm/[email protected]/node_modules/vue/types/v3-component-public-instance",则无法命名 "__VLS_37" 的推断类型。这很可能不可移植。需要类型注释。ts-plugin(2742)
如果没有引用 ".pnpm/[email protected]/node_modules/vue/types/vue",则无法命名 "__VLS_37" 的推断类型。这很可能不可移植。需要类型注释。
What is expected?
不报红
What is actually happening?
ts错误
Link to minimal reproduction
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: