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

taro3.2.0,支付宝和百度都不支持 #54

Open
crixusshen opened this issue Apr 4, 2021 · 3 comments
Open

taro3.2.0,支付宝和百度都不支持 #54

crixusshen opened this issue Apr 4, 2021 · 3 comments

Comments

@crixusshen
Copy link

感觉每次依赖平台的依赖性太大了,还是用最原始的样式引入字体的方式来实现吧

@lesterlong007
Copy link

一言难尽 taro 3.4,支付宝小程序直接报错
Can't resolve 'components/iconfont/alipay/alipay'

@ywanhzy
Copy link

ywanhzy commented Dec 21, 2022

一言难尽 taro 3.4,支付宝小程序直接报错 Can't resolve 'components/iconfont/alipay/alipay'

我的也是同样错误

@DawnCHL
Copy link

DawnCHL commented Mar 2, 2023

支付宝小程序的场景,将helper.js 修改一下可以使用:

/* eslint-disable */
const useGlobalIconFont = () => {
  return {
    iconfont: `./components/iconfont/${process.env.TARO_ENV}/${process.env.TARO_ENV}`,
  };
};

// es modules is unavaiable.
module.exports.useGlobalIconFont = useGlobalIconFont;

我的 taro 版本是 v3.4.x。

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

4 participants