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.6.2 版本Taro.atMessage 类型丢失 #1589

Closed
zhangminggeek opened this issue Feb 27, 2023 · 6 comments
Closed

3.6.2 版本Taro.atMessage 类型丢失 #1589

zhangminggeek opened this issue Feb 27, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@zhangminggeek
Copy link

相关平台

微信小程序

复现仓库

https://gitee.com/xxx/xxx.git
小程序基础库: 2.30.2
使用框架: React

复现步骤

import Taro from '@tarojs/taro';

Taro.atMessage({ message: “123123”, type: 'error' });

期望结果

ts 类型正确

实际结果

报错 Property 'atMessage' does not exist on type 'TaroStatic'.

环境信息

Taro CLI 3.6.2 environment info:
    System:
      OS: macOS 11.3
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v16.14.2/bin/yarn
      npm: 8.7.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
    npmPackages:
      @tarojs/components: 3.6.2 => 3.6.2
      @tarojs/helper: 3.6.2 => 3.6.2
      @tarojs/mini-runner: 3.6.2 => 3.6.2
      @tarojs/plugin-framework-react: 3.6.2 => 3.6.2
      @tarojs/react: 3.6.2 => 3.6.2
      @tarojs/runtime: 3.6.2 => 3.6.2
      @tarojs/taro: 3.6.2 => 3.6.2
      @tarojs/webpack-runner: 3.6.2 => 3.6.2
      babel-preset-taro: 3.6.2 => 3.6.2
      react: ^18.2.0 => 18.2.0
      taro-ui: 3.1.0-beta.4 => 3.1.0-beta.4
@TheKonka
Copy link
Member

这是taro-ui的问题,不是taro的问题

@ZakaryCode ZakaryCode transferred this issue from NervJS/taro Mar 1, 2023
@ZakaryCode ZakaryCode removed their assignment Mar 1, 2023
@taro-ui-bot
Copy link

taro-ui-bot bot commented Mar 1, 2023

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@chf12mm
Copy link

chf12mm commented Mar 7, 2023

image
v3.5.0-alpja.16
packages/taro/types/taro.extend.d.ts
删除了 atMessage(options: AtMessageOptions): void
导致Taro. atMessage(options: AtMessageOptions)不能使用,希望更新对应,taro文档及taro-ui文档更新

@a992681784
Copy link

遇到同样的问题,希望官方尽快更新解决下!

@AIchovy
Copy link

AIchovy commented Apr 5, 2023

同样碰到问题,更新了吗

@robinv8 robinv8 added the bug Something isn't working label May 4, 2023
@robinv8
Copy link
Member

robinv8 commented Aug 15, 2023

安装最新版

npm install taro-ui@next

@robinv8 robinv8 closed this as completed Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants