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

安装taro-hooks后 ts报错“View”不能用作 JSX 组件。 #45

Closed
pangxzi opened this issue Jul 5, 2023 · 3 comments
Closed

安装taro-hooks后 ts报错“View”不能用作 JSX 组件。 #45

pangxzi opened this issue Jul 5, 2023 · 3 comments
Labels
need reproduce not provide code split or repo question Further information is requested

Comments

@pangxzi
Copy link

pangxzi commented Jul 5, 2023

image
image

@pangxzi pangxzi added the question Further information is requested label Jul 5, 2023
@github-actions github-actions bot added the need reproduce not provide code split or repo label Jul 5, 2023
@github-actions
Copy link

github-actions bot commented Jul 5, 2023

welcome discuss in wechat:

@innocces
Copy link
Owner

innocces commented Jul 9, 2023

这个是因为 taro-hooks 的新版本在 optionalDeps 里添加了 vue 相关的依赖牵扯了 taro 的一个类型文件失常问题

@innocces
Copy link
Owner

innocces commented Jul 9, 2023

新版已移除 vue 相关的 deps. 若再有问题可再次打开 taro-hooks@2.0.3

@innocces innocces closed this as completed Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need reproduce not provide code split or repo question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants