-
Notifications
You must be signed in to change notification settings - Fork 99
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
@antmjs/vantui dependencies 里包含vue 导致npm安装了vue的包,从而导致ts类型检测不通过 #526
Labels
bug
Something isn't working
Comments
This was referenced Jul 5, 2023
This was referenced Aug 25, 2023
This was referenced Jan 31, 2024
This was referenced May 11, 2024
This was referenced May 24, 2024
This was referenced Jun 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个 Issue 涉及以下平台:
BUG 描述
@antmjs/vantui dependencies 里包含vue 导致npm安装了vue的包,从而导致ts类型检测不通过出现如下错误
“Image”不能用作 JSX 组件。
其返回类型 "ReactElement<any, any> | null" 不是有效的 JSX 元素。
“View”不能用作 JSX 组件。
其元素类型 "ReactElement<any, any> | Component<ViewProps, any, any> | null" 不是有效的 JSX 元素。
不能将类型“ReactElement<any, any>”分配给类型“Element | ElementClass | null”。
复现步骤
npm 安装@antmjs/vantui 后出现
期望结果
React 框架下不应该安装Vue 。
实际结果
安装@antmjs/vantui 后 node_modules里出现了Vue包
截图
环境
node:16.19.1
npm:8.19.3
附加信息
The text was updated successfully, but these errors were encountered: