'@tarojs/components' does not contain an export named 'OpenData'

bfnvny8b  于 2023-02-04  发布在  其他
关注(0)|答案(1)|浏览(857)

相关平台

字节跳动小程序

小程序基础库: 2.5
使用框架: React

复现步骤

"@tarojs/components": "^3.5.12",使用这个库,build:tt会有编译警告。

期望结果

无这个警告

实际结果

⚠️ 编译警告. 2023/1/31 17:13:49

./node_modules/taro-ui/dist/index.esm.js 1657:46-54
" '@tarojs/components' does not contain an export named 'OpenData'.

环境信息

👽 Taro v3.5.7

  Taro CLI 3.5.7 environment info:
    System:
      OS: macOS 12.5
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 16.15.1 - /usr/local/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 8.11.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.5.7 => 3.5.7 
      @tarojs/components: ^3.5.12 => 3.5.12 
      @tarojs/helper: 3.5.7 => 3.5.7 
      @tarojs/mini-runner: 3.5.7 => 3.5.7 
      @tarojs/plugin-framework-react: 3.5.7 => 3.5.7 
      @tarojs/plugin-platform-alipay: 3.5.7 => 3.5.7 
      @tarojs/plugin-platform-jd: 3.5.7 => 3.5.7 
      @tarojs/plugin-platform-qq: 3.5.7 => 3.5.7 
      @tarojs/plugin-platform-swan: 3.5.7 => 3.5.7 
      @tarojs/plugin-platform-tt: 3.5.7 => 3.5.7 
      @tarojs/plugin-platform-weapp: 3.5.7 => 3.5.7 
      @tarojs/react: 3.5.7 => 3.5.7 
      @tarojs/router: 3.5.7 => 3.5.7 
      @tarojs/runtime: 3.5.7 => 3.5.7 
      @tarojs/shared: 3.5.7 => 3.5.7 
      @tarojs/taro: 3.5.7 => 3.5.7 
      @tarojs/taro-h5: 3.5.7 => 3.5.7 
      @tarojs/webpack-runner: 3.5.7 => 3.5.7 
      babel-preset-taro: 3.5.7 => 3.5.7 
      eslint-config-taro: 3.5.7 => 3.5.7 
      react: ^18.0.0 => 18.2.0 
      taro-ui: ^3.0.0-alpha.10 => 3.0.0-alpha.10

补充信息

有人提过oncall,似乎解决过这个问题,最近又出现了。

ulmd4ohb

ulmd4ohb1#

为什么单独升级 @tarojs/components , 不整个升级

主要是 @tarojs/plugin-platform-tt 这个要升级到最新版本

#13010

相关问题