ppoffice / hexo-theme-icarus

A simple, delicate, and modern theme for the static site generator Hexo.
https://ppoffice.github.io/hexo-theme-icarus/
MIT License
6.28k stars 1.54k forks source link

【已解决】主题与bulma-stylus@0.9.2-rc.1不兼容。请不要手贱乱更新依赖。 #1243

Closed rinscr3003 closed 7 months ago

rinscr3003 commented 7 months ago

确保你在提交Bug反馈之前仔细阅读了Hexo文档Icarus用户指南,和GitHub issues来了解你的问题是否已经被他人提出过。

Bug描述 将依赖bulma-stylus更新到0.9.2-rc.1后出现错误如下:

ERROR Asset render failed: css/default.css
Error: C:/Users/******/Documents/******/node_modules/bulma-stylus/stylus/utilities/functions.styl:8:5
    4|     if match('\b(' + $type + ')\b', typeof(v)) != null
    5|       _void = _void + 1;
    6|
    7|   if length($list) != _void
    8|     error("Unexpected type inside the list.")
----------^
    9|     return false;
   10|
   11|   return true;

Unexpected type inside the list.

系统与环境 列出你的Hexo和Icarus的版本和配置。

hexo: 7.0.0
hexo-cli: 4.3.0
os: win32 10.0.22621
node: 18.13.0
v8: 10.2.154.23-node.21
uv: 1.44.2
zlib: 1.2.13
brotli: 1.0.9
ares: 1.18.1
modules: 108
nghttp2: 1.51.0
napi: 8
llhttp: 6.0.10
uvwasi: 0.0.13
openssl: 3.0.7+quic
cldr: 42.0
icu: 72.1
tz: 2022f
unicode: 15.0
ngtcp2: 0.8.1
nghttp3: 0.7.0

复现方式 列出复现这个Bug的步骤,如:

执行yarn upgrade bulma-stylus@0.9.2-rc.1。然后hexo g。 执行hexo s,访问本地临时服务器即可看到页面没有正常的样式,同时控制台输出以下错误:

ERROR Asset render failed: css/default.css
Error: C:/Users/******/Documents/******/node_modules/bulma-stylus/stylus/utilities/functions.styl:8:5
    4|     if match('\b(' + $type + ')\b', typeof(v)) != null
    5|       _void = _void + 1;
    6|
    7|   if length($list) != _void
    8|     error("Unexpected type inside the list.")
----------^
    9|     return false;
   10|
   11|   return true;

Unexpected type inside the list.

期望行为 简洁清晰地描述没有这个情况下你期望得到的结果。 页面正常渲染,无异常。

截图 如果可以的话,请附上几张截图来帮助说明你遇到的问题。

额外上下文 附上与问题有关的其他上下文信息。

该问题已经解决。解决方法如下: 执行yarn upgrade bulma-stylus@0.8.0。然后重新构建。不要手贱乱更新它。 立此issue标识该情况,以便小白搜索issue时查找。