ant-design / ant-design/compatible

Can't resolve './antd/dist/antd.less'

Open
#134 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
93
Forks
29
PR merge metrics
No merged PRs in 30d

Description

umi3 引用@ant-design/compatible/assets/index.less报错,无法识别@import (reference) 'antd/dist/antd.less'

![d246f3fb119704feb3f2b9c368310c4](https://user-images.githubusercontent.com/24517456/182132640-849d58aa-25e6-4e26-b008-e82f2de4e5b9.png)

[复现链接:https://github.com/zzy1661/umi3-bugs.git](https://github.com/zzy1661/umi3-bugs.git)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the import in @ant-design/compatible/assets/index.less and the failing antd/dist/antd.less reference, then reproduce the error using the linked umi3-bugs repository. Done means the umi3 build resolves the stylesheet import without the reported error.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.