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

Nextjs 中 createFromIconfontCN 报错 #589

Closed
LengYXin opened this issue Aug 4, 2023 · 2 comments · Fixed by #653
Closed

Nextjs 中 createFromIconfontCN 报错 #589

LengYXin opened this issue Aug 4, 2023 · 2 comments · Fixed by #653

Comments

@LengYXin
Copy link

LengYXin commented Aug 4, 2023

createFromIconfontCN 会转换为 @ant-design/icons/lib/icons/createFromIconfontCN

image

无其他代码只有 导入创建


import { createFromIconfontCN } from '@ant-design/icons';
const IconFont = createFromIconfontCN({
  scriptUrl: '//at.alicdn.com/t/font_8d5l8fzk5b87iudi.js',
});
console.log("LENG ~ IconFont:", IconFont);

Nextjs 13.4.12

@wwz223
Copy link

wwz223 commented May 7, 2024

有解决吗 @LengYXin

@afc163
Copy link
Member

afc163 commented Jul 21, 2024

Fixed in @ant-design/[email protected]: #653

@afc163 afc163 closed this as completed Jul 21, 2024
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

Successfully merging a pull request may close this issue.

3 participants