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

自动API 总是提示 未找到 XXX 组件的属性定义 #1629

Closed
juntity opened this issue Apr 26, 2023 · 2 comments
Closed

自动API 总是提示 未找到 XXX 组件的属性定义 #1629

juntity opened this issue Apr 26, 2023 · 2 comments
Labels
question Further information is requested

Comments

@juntity
Copy link

juntity commented Apr 26, 2023

Question

也不清楚是配置问题还是写法问题, 自动 API 总是出不来

dumi v2.1.22

Sample Code

组件
`import React, { FC } from "react";
import { createFromIconfontCN } from "@ant-design/icons";

export interface IconProps {
type?: string,
style?: React.CSSProperties,
[key: string]: any
}

const IconFont = createFromIconfontCN({
scriptUrl: '//at.alicdn.com/t/c/font_3302712_zruvxur74tl.js',
});

const MSIcon:FC = (props: IconProps) => {
const type = props.type || "";
const style = props.style || {};
return <IconFont type={type} style={style} {...props} />;
}
export default MSIcon;`

文档
<API></API>

<API id="MSIcon"></API>
都出不来

@juntity juntity added the question Further information is requested label Apr 26, 2023
@PeachScript
Copy link
Member

Duplicate of #1476

@PeachScript PeachScript marked this as a duplicate of #1476 Apr 26, 2023
@PeachScript
Copy link
Member

如果不是 Windows 系统,在上面的 issue 里提供复现信息;如果是 Windows 系统,目前解析器存在系统兼容性问题,需要等后续支持后才能使用

@PeachScript PeachScript closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants