You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
events.js:174
throw er; // Unhandled 'error' event
^
Error: node_modules/element-theme-chalk/src/avatar.scss
Error: Undefined variable: "$--avatar-font-color".
on line 9 of node_modules/element-theme-chalk/src/avatar.scss, in mixin @content
from line 74 of node_modules/element-theme-chalk/src/mixins/mixins.scss, in mixin b
from line 4 of node_modules/element-theme-chalk/src/avatar.scss
⠸ build element theme
events.js:174
throw er; // Unhandled 'error' event
^
Error: node_modules/element-theme-chalk/src/avatar.scss
Error: Undefined variable: "$--avatar-font-color".
on line 9 of node_modules/element-theme-chalk/src/avatar.scss, in mixin `@content`
from line 74 of node_modules/element-theme-chalk/src/mixins/mixins.scss, in mixin `b`
from line 4 of node_modules/element-theme-chalk/src/avatar.scss
>> color: $--avatar-font-color;
---------^
Activity
philliphartin commentedon Aug 13, 2019
I'm also having the same issue with:
Seems the issue is because of the addition of the Avatar component in ElementUI/theme-chalk@d1968d4
sunyongjian commentedon May 20, 2020
在
element-variables.scss这个文件里,把缺少的变量定义一下就行了。具体定义的值是什么,可以看 element-theme-chalk, lib 中对应 css 文件的代码,找到报错的 css 属性和值。
楼上的报错信息看,是去
node_modules/element-theme-chalk/lib/avatar.css下,找color的属性。当然你也可以跳过,直接写 ‘default’ 之类的属性值。
比如:
问题出现的原因不确定,估计是 element-theme 的 bug.