-
Notifications
You must be signed in to change notification settings - Fork 273
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
[Bug] Generate declaration files fail in 4.3.2
and 4.3.3
#710
Comments
非
|
father@4.3.1正常,father@4.3.3有问题 |
两种建议的修改方式:
dumi 下个版本会更新 warning 和脚手架,并增加 tsconfig 自动修正逻辑 |
v4.3.4 修复了该问题,方案是过滤掉不属于 father 编译源文件产生的类型错误,可以更新到新版试试看 |
@PeachScript :v4.3.4下,
编译错误代码 type IFoo2Props = {
/**
* @description 标题
* @default "默认值"
*/
title: string;
};
const Foo2 = (props: IFoo2Props) => <h4>{props.title}</h4>;
export default Foo2; 这样就编译正常 import type { FC } from 'react';
type IFoo2Props = {
/**
* @description 标题
* @default "默认值"
*/
title: string;
};
const Foo2: FC<IFoo2Props> = (props) => <h4>{props.title}</h4>;
export default Foo2; |
后面的问题,移步到 #713 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Father build Generate declaration files 在
4.3.2
和4.3.3
报错,4.3.1
中正常https://github.com/lobehub/lobe-ui/actions/runs/6108436253/job/16583229714
The text was updated successfully, but these errors were encountered: