ant-design / ant-design/pro-components

🧐[问题] ProForm cannot find module '../../../../utils/src' or its corresponding type declarations

Open
#8,169 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

问题描述:
更新 @antd-desogn/procomponents 版本 2.6.28 到2.6.49 在build的时候pro-form模块下的 FormItermRender组件类型文件路径导入出错。 请问如何解决
![image](https://github.com/ant-design/pro-components/assets/44203829/f64170b9-a9ce-45e9-9c8f-0599c8ef650e)

Contributor guide

Open the contributing guide

Research direction

Reproduce the build with @antd-design/procomponents versions 2.6.28 and 2.6.49, focusing on the pro-form FormItermRender type declaration and its import of '../../../../utils/src'. Compare the generated type-file paths between versions; done means the build resolves the module and its type declarations without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.