【发布时间】:2020-08-28 20:40:56
【问题描述】:
我在导入 Chakra UI 时遇到此错误。
if (variantColorIsDefined) {
var variantColorExists = variantColor in theme.colors; // If variant color exists in theme object
^ 114 |
if (!variantColorExists) {
console.warn("You passed an invalid variantColor to the " + label + " Component. Variant color values must be a color key in the theme object that has '100' - '900' color values. Check http://chakra-ui.com/theme#colors to see possible values");
【问题讨论】:
标签: javascript html css chakra