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

项目突然报el-***错的问题 #2698

Closed
Hao1617 opened this issue Apr 24, 2023 · 5 comments
Closed

项目突然报el-***错的问题 #2698

Hao1617 opened this issue Apr 24, 2023 · 5 comments
Labels
duplicate This issue or pull request already exists

Comments

@Hao1617
Copy link

Hao1617 commented Apr 24, 2023

整个项目所有vue文件突然出现类似下面这种错误

类型“{ label: string; width: string; align: string; }”的参数不能赋给类型“App & Partial<{ type: string; width: string | number; minWidth: string | number; sortOrders: ("ascending" | "descending" | null)[]; sortable: string | boolean; resizable: boolean; reserveSelection: boolean; filterMultiple: boolean; }> & Omit<...> & Record<...>”的参数。
类型“{ label: string; width: string; align: string; }”缺少类型“App”的以下属性: version, config, use, mixin 及其他 11 项。ts(2345)

Vue Language Features (Volar) v1.4.1

@Hao1617
Copy link
Author

Hao1617 commented Apr 24, 2023

切换到预发布 v1.5.2 版本,此问题解决了。请问是什么原因

@frg2089
Copy link

frg2089 commented Apr 25, 2023

切换到预发布 v1.5.2 版本,此问题解决了。请问是什么原因

遇到了同样的问题,切换到预发布版本后解决了。

我猜测是因为TypeScript改了什么东西导致volar不能正确识别TS语言的版本(状态栏上volar的TS语言版本那里显示x.x.x)导致的。

我的TS语言版本是5.0.4。

@Hao1617
Copy link
Author

Hao1617 commented Apr 25, 2023

切换到预告发布v1.5.2版本,此问题解决了。请问是什么原因

遇到同样的问题,切换到预期发布版本后解决了。

我猜测是因为TypeScript改了什么东西导向手掌不能正确认识别TS语言的版本(状态栏上手掌的TS语言版本那里显示xxx)导向的。

我的TS语言版本是5.0.4。

我跟你的版本相同,好像是这两天被自动更新了。之前也没关注ts版本

@frg2089
Copy link

frg2089 commented Apr 25, 2023

切换到预告发布v1.5.2版本,此问题解决了。请问是什么原因

遇到同样的问题,切换到预期发布版本后解决了。
我猜测是因为TypeScript改了什么东西导向手掌不能正确认识别TS语言的版本(状态栏上手掌的TS语言版本那里显示xxx)导向的。
我的TS语言版本是5.0.4。

我跟你的版本相同,好像是这两天被自动更新了。之前也没关注ts版本

好奇怪的浏览器自动翻译...

我感觉这个和 #2701 遇到的问题或许是一样的。

#2654 有对这个问题更清晰的描述

Duplicate of #2654

@johnsoncodehk
Copy link
Member

Duplicate of #2647

@johnsoncodehk johnsoncodehk marked this as a duplicate of #2647 Apr 25, 2023
@johnsoncodehk johnsoncodehk closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2023
@johnsoncodehk johnsoncodehk added the duplicate This issue or pull request already exists label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants