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 表格,未找到 Foo 组件的属性定义 #1476

Open
hanxzi opened this issue Feb 14, 2023 · 13 comments · May be fixed by #1653
Open

自动 API 表格,未找到 Foo 组件的属性定义 #1476

hanxzi opened this issue Feb 14, 2023 · 13 comments · May be fixed by #1653
Labels
question Further information is requested

Comments

@hanxzi
Copy link

hanxzi commented Feb 14, 2023

Question

自动 API 表格,未找到 Foo 组件的属性定义

Sample Code

// src/Foo/index.tsx
import React, { type FC } from "react";
const Foo: FC<{title?: string;}> = ({ title }) => <h1>{title}</h1>;
export default Foo;

// src/Foo/index.md
<API id="Foo"></API>

// src/index.ts
export { default as Foo } from './Foo';

// .dumirc.ts
export default defineConfig({
apiParser: {},
resolve: {
entryFile: './src/index.ts',
},
})

version

"dumi": "^2.1.9",

@hanxzi hanxzi added the question Further information is requested label Feb 14, 2023
@zhjgh
Copy link

zhjgh commented Mar 7, 2023

我也遇到这个问题

@hanxzi
Copy link
Author

hanxzi commented Mar 7, 2023 via email

@ethan897
Copy link

新版本的bug。dumi降到2.0.0就行了
真受不了这坑,生成api文档这么重要的功能竟然不测试就发出来了,对阿里的质控也是无语

@hanxzi
Copy link
Author

hanxzi commented Mar 22, 2023 via email

@zhjgh
Copy link

zhjgh commented Mar 22, 2023 via email

@vaynevayne
Copy link

我也遇到了

@PeachScript PeachScript linked a pull request May 11, 2023 that will close this issue
10 tasks
@ffhope
Copy link

ffhope commented Jul 10, 2023

离谱,我还以为有什么特殊写法

@BrotaOne
Copy link

而且半年过去了,现在2.2.0版本了,都没有修复。。。

@ThorSmallice
Copy link

新版本的bug。dumi降到2.0.0就行了 真受不了这坑,生成api文档这么重要的功能竟然不测试就发出来了,对阿里的质控也是无语
降到2.0.0 再跑我这里报错 Cannot find module 'umi/dist/cli/node' 。 看了下node_modules里面umi/dist/cli 文件夹里确实没有node这个文件,你的umi版本是多少, 我装的是4.0.83

@ThorSmallice
Copy link

image

@PeachScript
Copy link
Member

和 dumi 2 具体版本无关,dumi 2 的自动 API 目前不支持 Windows,受限于底层解析库,支持时间尚不确定,Windows 用户请使用其他方式编写 API 文档,比如手写 Markdown 表格

@ThorSmallice
Copy link

马上换台MAC

和 dumi 2 具体版本无关,dumi 2 的自动 API 目前不支持 Windows,受限于底层解析库,支持时间尚不确定,Windows 用户请使用其他方式编写 API 文档,比如手写 Markdown 表格

@XiaMin-sisi
Copy link

XiaMin-sisi commented Nov 13, 2023

怎么调各列的宽度啊,多少有点丑啊 @PeachScript
image

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

Successfully merging a pull request may close this issue.

9 participants