ant-design / ant-design/pro-components

🐛[BUG]@ant-design/pro-form从2.2.6升级到2.3.0后打包到生产时登录页表单样式未加载

Open
#8,312 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

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

### 🐛 bug 描述

项目是22年10月左右开始的,初始化时的相关版本如图:
![image](https://github.com/ant-design/pro-components/assets/12961611/f0dc516d-b8e8-4db8-b2d0-496566f1c606)
![image](https://github.com/ant-design/pro-components/assets/12961611/dfb61b3b-b442-4220-b378-0cbf55314e04)

后面隔了几个月,把lock文件删除了,装的新版本发现打包后登录页不加载表单样式,登录后其它组件都正常。
![image](https://github.com/ant-design/pro-components/assets/12961611/567e6763-6e25-4dee-a7a0-79d9fb66cab4)

### 📷 复现步骤

最近经过单独升级pro-form版本发现,升级到2.3.0开始就会出现这个问题,去看了下源码的版本对比,不清楚是不是和loader升级有关
![image](https://github.com/ant-design/pro-components/assets/12961611/b6e674c5-7307-4374-92e5-729711443a41)
![image](https://github.com/ant-design/pro-components/assets/12961611/98391850-b166-4d87-a85f-3b9cb6d1f80a)

### 🏞 期望结果

截止到今天(24.4.16)即使删除lock,把各组件的版本全升级到对应版本号的最新,其它问题没有,就这个登录页打包后异常,是更新后项目中哪里有配置要改吗?我需要如何做

Contributor guide

Open the contributing guide

Research direction

Compare @ant-design/pro-form 2.2.6 and 2.3.0, focusing on the loader-related changes shown in the issue. Reproduce a production build with the login page and verify whether its form styles are missing while other components remain styled; done means identifying the required configuration change or confirming a package regression.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.