ant-design / ant-design/codemod-v4
Cannot read property 'numerator' of undefined
- Dominant language
- JavaScript
- Stars
- 99
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
报错:[$ node scripts/start.js
Failed to compile.
./node_modules/antd/lib/drawer/style/index.less
Module build failed:
/* stylelint-disable-next-line function-calc-no-invalid */
padding-right: calc(@drawer-header-close-padding - var(--scroll-bar));
^
Cannot read property 'numerator' of undefined]([url](url

))
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the failure with `node scripts/start.js` and inspect `node_modules/antd/lib/drawer/style/index.less` around the reported `calc` expression. Confirm the build completes without the `numerator` error; the issue does not mention a test or other project entry point.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100