小编ris*_*k13的帖子

Create-react-app + react-app-rewired + typescript + antd

我正在尝试启动项目并遇到问题.有没有人有成功的Create-react-app + react-app-rewired + typescript + antd一起工作?我已经尝试了所有教程/自定义脚本/加载器的东西,没有运气.我认为https://github.com/SZzzzz/react-scripts-ts-antd将是我所有问题的答案,但是得到了这个编译错误:

(28,81): Type '{ className: string; style: { transition: string | boolean; msTransform: string; WebkitTransform:...' does not satisfy the constraint 'HTMLAttributes<HTMLElement>'. Types of property 'style' are incompatible. Type '{ transition: string | boolean; msTransform: string; WebkitTransform: string; transform: string; }' is not assignable to type 'CSSProperties | undefined'. Type '{ transition: string | boolean; msTransform: string; WebkitTransform: string; transform: string; }' is not assignable to type 'CSSProperties'. Types of property 'transition' are …

typescript create-react-app antd

1
推荐指数
1
解决办法
3233
查看次数

标签 统计

antd ×1

create-react-app ×1

typescript ×1