-
Notifications
You must be signed in to change notification settings - Fork 266
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
[toast] 找不到模块“tdesign-miniprogram/toast/index”或其相应的类型声明。 #2878
Comments
👋 @matianhe3,感谢给 TDesign 提出了 issue。 |
@matianhe3 开发工具上有勾选“将JS编译成ES5”选项吗 |
|
@matianhe3 https://developers.weixin.qq.com/s/l0azMimf7CSu 这里有个toast组件示例的代码片段,你导入开发者工具试试
|
有没有typescript版的, 打开看是js的. |
没有本质区别 |
代码片段没有报错提示 |
@matianhe3 所以需要你提供一个能复现报错提示的代码片段给我,可以基于上面的片段链接修改或者新建代码片段,重新提供链接 |
|
get到你说的"报错"了 🤦,改成 import { Toast } from 'tdesign-miniprogram'; |
|
https://developers.weixin.qq.com/s/odzz7smx7FSP 我这边没能复现你控制台的报错、 |
tdesign-miniprogram 版本
1.4.2
重现链接
No response
重现步骤
import Toast from "tdesign-miniprogram/toast/index";
期望结果
小程序可以运行, 但是开发者工具报错.
实际结果
基础库版本
3.4.6
补充说明
按照示例复制代码
The text was updated successfully, but these errors were encountered: