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

3.3.0 版本 Taro.showModal 不存在,之前版本还有的。 #9811

Closed
liushengxuyanyu opened this issue Jul 17, 2021 · 1 comment · Fixed by #9789 or #9858
Closed

3.3.0 版本 Taro.showModal 不存在,之前版本还有的。 #9811

liushengxuyanyu opened this issue Jul 17, 2021 · 1 comment · Fixed by #9789 or #9858
Labels
F-vue3 Framework - Vue 3 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x
Milestone

Comments

@liushengxuyanyu
Copy link

相关平台

支付宝小程序

小程序基础库: 2.1.9
使用框架: Vue 3

复现步骤

 import Taro from '@tarojs/taro'
 console.log(Taro)  // 唯独没有showModal
 console.log(Taro.showToast) // 存在
 console.log(Taro.showModal) // 不存在

期望结果

期望有showModal

实际结果

没有showModal属性

环境信息

👽 Taro v3.3.0


  Taro CLI 3.3.0 environment info:
    System:
      OS: macOS 10.14.3
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 14.17.0 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 6.14.13 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: ^3.3.0 => 3.3.0
      @tarojs/components: ^3.3.0 => 3.3.0
      @tarojs/mini-runner: ^3.3.0 => 3.3.0
      @tarojs/plugin-platform-alipay: ^3.3.0 => 3.3.0
      @tarojs/plugin-platform-jd: ^3.3.0 => 3.3.0
      @tarojs/plugin-platform-qq: ^3.3.0 => 3.3.0
      @tarojs/plugin-platform-swan: ^3.3.0 => 3.3.0
      @tarojs/plugin-platform-tt: ^3.3.0 => 3.3.0
      @tarojs/plugin-platform-weapp: ^3.3.0 => 3.3.0
      @tarojs/runtime: ^3.3.0 => 3.3.0
      @tarojs/taro: ^3.3.0 => 3.3.0
      @tarojs/webpack-runner: ^3.3.0 => 3.3.0
      babel-preset-taro: ^3.3.0 => 3.3.0
      eslint-config-taro: ^3.3.0 => 3.3.0
    npmGlobalPackages:
      typescript: 4.3.3
@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x labels Jul 17, 2021
@luckyadam
Copy link
Member

删了 node_modules,重新装一下依赖试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x
Projects
None yet
3 participants