taro-iconfont-cli icon indicating copy to clipboard operation
taro-iconfont-cli copied to clipboard

【h5】“React”指 UMD 全局,但当前文件是模块。请考虑改为添加导入。ts(2686)

Open ruofeng086 opened this issue 5 years ago • 6 comments

image

ruofeng086 avatar Jul 06 '20 03:07 ruofeng086

image

ruofeng086 avatar Jul 06 '20 03:07 ruofeng086

请问下taro的版本

fwh1990 avatar Jul 06 '20 16:07 fwh1990

3.0.0-rc6

---原始邮件--- 发件人: "原罪"<[email protected]> 发送时间: 2020年7月7日(周二) 凌晨0:30 收件人: "iconfont-cli/taro-iconfont-cli"<[email protected]>; 抄送: "ruofeng086"<[email protected]>;"Author"<[email protected]>; 主题: Re: [iconfont-cli/taro-iconfont-cli] 【h5】“React”指 UMD 全局,但当前文件是模块。请考虑改为添加导入。ts(2686) (#26)

请问下taro的版本

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ruofeng086 avatar Jul 06 '20 16:07 ruofeng086

taro 2.0的全局使用Taro,到3.0应该都切换到React了,需要适配一下

fwh1990 avatar Jul 10 '20 00:07 fwh1990

#28

fwh1990 avatar Jul 28 '20 08:07 fwh1990

Hello, taro-iconfont-cli@next已经发布,欢迎使用,唯一需要变更的就是usingComponent

// pages/**/index.config.js

import { useIconFont } from '../../components/iconfont/helper';

export default {
  usingComponents: Object.assign(useIconFont()),
}

不算最好的方案,所以正式版先不发布。有什么更好的建议,欢迎随时反馈

fwh1990 avatar Aug 07 '20 15:08 fwh1990