Open xiangyichang opened 6 months ago
ERROR 12:23:25 AM [vite] Internal server error: [less] Error evaluating function round: argument must be a number 12:23:25 AM Plugin: vite:css File: /Users/jeckma/react-admin/node_modules/.pnpm/antd@4.0.0_dayjs@1.11.11_react-dom@18.2.0_react@18.2.0/node_modules/antd/es/style/themes/default.less:346:30 344| @input-padding-horizontal-sm: @control-padding-horizontal-sm - 1px; 345| @input-padding-horizontal-lg: @input-padding-horizontal; 346| @input-padding-vertical-base: round( | ^ 347| (@input-height-base - @font-size-base @line-height-base) / 2 10 348| ) / 10 - @border-width-base;
Node18以上的版本试试呢
ERROR 12:23:25 AM [vite] Internal server error: [less] Error evaluating function round: argument must be a number 12:23:25 AM Plugin: vite:css File: /Users/jeckma/react-admin/node_modules/.pnpm/antd@4.0.0_dayjs@1.11.11_react-dom@18.2.0_react@18.2.0/node_modules/antd/es/style/themes/default.less:346:30 344| @input-padding-horizontal-sm: @control-padding-horizontal-sm - 1px; 345| @input-padding-horizontal-lg: @input-padding-horizontal; 346| @input-padding-vertical-base: round( | ^ 347| (@input-height-base - @font-size-base @line-height-base) / 2 10 348| ) / 10 - @border-width-base;