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

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

Open
ruofeng086 opened this issue Jul 6, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@ruofeng086
Copy link

ruofeng086 commented Jul 6, 2020

image

@ruofeng086
Copy link
Author

image

@fwh1990
Copy link
Member

fwh1990 commented Jul 6, 2020

请问下taro的版本

@ruofeng086
Copy link
Author

ruofeng086 commented Jul 6, 2020 via email

@fwh1990
Copy link
Member

fwh1990 commented Jul 10, 2020

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

@fwh1990 fwh1990 added the bug Something isn't working label Jul 10, 2020
@fwh1990
Copy link
Member

fwh1990 commented Jul 28, 2020

#28

@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
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants