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

React is not defined #30

Open
GreatAuk opened this issue Aug 5, 2020 · 4 comments
Open

React is not defined #30

GreatAuk opened this issue Aug 5, 2020 · 4 comments

Comments

@GreatAuk
Copy link

GreatAuk commented Aug 5, 2020

weapp
taro: 3.0.7
image

@fwh1990
Copy link
Member

fwh1990 commented Aug 5, 2020

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

@fwh1990
Copy link
Member

fwh1990 commented Aug 5, 2020

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

@Jackyzm
Copy link

Jackyzm commented Aug 6, 2020

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

@fwh1990
Copy link
Member

fwh1990 commented Aug 7, 2020

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

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

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants