-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
view不能用作jsx组件 版本为3.4.13 #12029
Comments
我也遇到了 |
@amzeshan @konka-king 没有复现喔 |
@Chen-jj 同jsx未报错 |
所以是报了还是没报。。原问题是指哪里的问题? |
创建项目时选择使用typescript则报错,不使用typescript则不报错 |
@amzeshan 更新一下 demo 仓库吧,提供一个可复现的 |
@amzeshan 仍然没有问题喔 |
这个我参考过,没有效果。目前我的解决方式是使用低版本的cli比如3.3.12是不会出现这个问题,谢谢你的解答,我换个版本 |
Demo 带 yarn.lock,我和你的项目依赖是一样的。与全局 CLI 也无关,因为是 VSCode 开发时报的 TS 错误。或许可以重启下 VSCode。。 |
同样的问题。vscode编辑器 对所有view text 等taro组件报错。其他taro项目又是正常的。奇了怪 |
针对这个问题发现如果使用了状态管理redux需要把依赖的react-redux版本指定为7.2.0 不要使用最新的即可解决掉 |
1 similar comment
针对这个问题发现如果使用了状态管理redux需要把依赖的react-redux版本指定为7.2.0 不要使用最新的即可解决掉 |
同样遇到,用的是pnpm |
再tsconfig.ts中加 "paths": {
"react": ["./node_modules/@types/react"]
} |
相关平台
H5
复现仓库
https://github.com/amzeshan/taro
浏览器版本: Edge 103.0.1264.44
使用框架: React
复现步骤
git clone https://github.com/amzeshan/taro.git
npm install
即可重现
期望结果
解决ts校验问题
实际结果
报错
环境信息
补充信息
最新版本依然报错
The text was updated successfully, but these errors were encountered: