ant-design / ant-design/codemod-v4

Cannot read property 'numerator' of undefined

Open
#155 7 comments 0 reactions 0 assignees View on GitHub
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
![6P{C_PKV(J2(}I_1Y@Z%ZLO](https://user-images.githubusercontent.com/44493374/88646346-a3184e00-d0f7-11ea-9521-cc10d53586b1.png)
))

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.