微信小程序
复现仓库https://github.com/ALmanCoder/Taro3.0.25-issues.git 小程序基础库: 2.13.1 使用框架: React
复现步骤1、CLI升级到3.0.25,重新创建应用,引入import Taro from "@tarojs/taro"; 2、就会出现'View' cannot be used as a JSX component; 3、CLI3.0.17版本没有问题。
期望结果引入Taro,TS校验不报错
实际结果引入Taro,TS校验报错
环境信息Taro CLI 3.0.25 environment info:
System:
OS: macOS 10.15.4
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.16.1 - /usr/local/bin/node
Yarn: 1.22.5 - ~/.yarn/bin/yarn
npm: 6.14.4 - /usr/local/bin/npm
npmPackages:
@tarojs/components: 3.0.25 => 3.0.25
@tarojs/mini-runner: 3.0.25 => 3.0.25
@tarojs/react: 3.0.25 => 3.0.25
@tarojs/runtime: 3.0.25 => 3.0.25
@tarojs/taro: 3.0.25 => 3.0.25
@tarojs/webpack-runner: 3.0.25 => 3.0.25
babel-preset-taro: 3.0.25 => 3.0.25
eslint-config-taro: 3.0.25 => 3.0.25
react: ^16.10.0 => 16.14.0
npmGlobalPackages:
typescript: 4.1.3