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

引入报错 #81

Open
superTigery opened this issue Sep 3, 2021 · 1 comment
Open

引入报错 #81

superTigery opened this issue Sep 3, 2021 · 1 comment

Comments

@superTigery
Copy link

TypeError: _icon.default.createFromIconfontCN is not a function

var _icon = _interopRequireDefault(require("antd/es/icon"));

var _default = _icon.default.createFromIconfontCN({
scriptUrl: '//at.alicdn.com/t/font_1089062_pnt5z551qz.js'
});

@wowlusitong
Copy link
Owner

这个是antd报错,和库本身无关,可以检查antd版本(不支持4.0),另外 这个例子是可以跑起来的,可以参考看看

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

2 participants