zhaopan-pan / vuepress-theme-zp

custom blog theme for vuepress2x
https://www.zhaopanpan.com
0 stars 1 forks source link

57 │ @each $color in $tag-colors { 报错内容如下,大佬有空看下 #2

Open fateplayer opened 1 year ago

fateplayer commented 1 year ago

[plugin:vite:css] [sass] Undefined variable. ╷ 57 │ @each $color in $tag-colors { │ ^^^^^^^^^^^ ╵ node_modules\vuepress-theme-zp\lib\client\styles\tag.scss 57:19 tag-wrapper() node_modules\vuepress-theme-zp\lib\client\styles\tag.scss 137:3 @use node_modules\vuepress-theme-zp\lib\client\styles\index.scss 20:1 root stylesheet D:\Documents\vs code\vuepress-blog2\node_modules\vuepress-theme-zp\lib\client\styles\tag.scss:57:19 at Object.wrapException (D:\Documents\vs code\vuepress-blog2\node_modules\sass\sass.dart.js:1237:17) at D:\Documents\vs code\vuepress-blog2\node_modules\sass\sass.dart.js:73193:23 at _wrapJsFunctionForAsync_closure.$protected (D:\Documents\vs code\vuepress-blog2\node_modules\sass\sass.dart.js:3828:15) at _wrapJsFunctionForAsync_closure.call$2 (D:\Documents\vs code\vuepress-blog2\node_modules\sass\sass.dart.js:28880:12) at Object._asyncStartSync (D:\Documents\vs code\vuepress-blog2\node_modules\sass\sass.dart.js:3792:20) at _EvaluateVisitor2.visitVariableExpression$body$_EvaluateVisitor0 (D:\Documents\vs code\vuepress-blog2\node_modules\sass\sass.dart.js:73199:16) at _EvaluateVisitor2.visitVariableExpression$1 (D:\Documents\vs code\vuepress-blog2\node_modules\sass\sass.dart.js:73173:19) at VariableExpression0.accept$1$1 (D:\Documents\vs code\vuepress-blog2\node_modules\sass\sass.dart.js:101390:22) at VariableExpression0.accept$1 (D:\Documents\vs code\vuepress-blog2\node_modules\sass\sass.dart.js:101393:19) at D:\Documents\vs code\vuepress-blog2\node_modules\sass\sass.dart.js:71536:39 Click outside or fix the code to dismiss. You can also disable this overlay by setting server.hmr.overlay to false in vite.config.js.

zhaopan-pan commented 1 year ago

@fateplayer 这个问题新版已经解决了,主题内添加了默认样式