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

React is not defined

Open GreatAuk opened this issue 5 years ago • 4 comments

weapp taro: 3.0.7 image

GreatAuk avatar Aug 05 '20 15:08 GreatAuk

#28 Taro3.0破坏性更新,正在等一个合适的时机升级。否则以目前的方案,必须每个页面都写usingComponents

fwh1990 avatar Aug 05 '20 15:08 fwh1990

明天先升一下吧,弄个过渡方案,先用起来

fwh1990 avatar Aug 05 '20 15:08 fwh1990

我也遇到这个问题 提了个pr 可以合一下 发个版吗 @fwh1990

Jackyzm avatar Aug 06 '20 02:08 Jackyzm

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