Ant-design-pro: 升级 umi 3 后 npm start 报错🧐[问题]

Created on 14 Apr 2020  ·  1Comment  ·  Source: ant-design/ant-design-pro

🧐 问题描述


按照 umi3 升级指引,修改了 package.json 和其他配置文件,npm start 时报错:
@picker-basic-cell-active-with-range-color: @primary-1;
@picker-basic-cell-hover-with-range-color: lighten(@primary-color, 35%);
^
Error evaluating function lighten: Argument cannot be evaluated to a color

删除 node_modules 和 package-lock.json 重装无效,下载最新的项目对比 config 没发现明显问题。

💻 示例代码

🚑 其他信息


image

🕵🏻‍♀️ question

Most helpful comment

找到原因了,粗心没发现 defaultSettings.jsprimaryColor 的值在升级后要改成具体的颜色,我还是之前的 'daybreak' ,导致报错。

>All comments

找到原因了,粗心没发现 defaultSettings.jsprimaryColor 的值在升级后要改成具体的颜色,我还是之前的 'daybreak' ,导致报错。

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yadongxie150 picture yadongxie150  ·  3Comments

happier2 picture happier2  ·  3Comments

gaoqiang19514 picture gaoqiang19514  ·  3Comments

2uncle-code picture 2uncle-code  ·  3Comments

Jerry-goodboy picture Jerry-goodboy  ·  3Comments