Closed Ling-Ink closed 2 years ago
是从旧版本升级上来的?之前从 sass 迁移到了 stylus 所以需要更换渲染器:
npm install hexo-renderer-stylus
之前的 sass 渲染器不需要的话可以移除
(另外当前版本有亿点点 bug,建议等 1.16
是第一次安装,按照README里的步骤做的
应该是 bug Orz……
也许可以用着 dev 分支的版本,克隆主题时加上 -b dev
。
换成 dev 分支之后又换了个地方报错...
ERROR {
err: TypeError: F:/#HexoBlog/blog/themes/arknights/source/css/_core/base.styl:5:33
1| // ========= 基础样式
2| // ====== base style
3| html, body
4| height 100%
5| cursor url(../cursor-inner.png) 3 3, default
--------------------------------------^
6| position static
7|
8| a, button
Cannot read properties of undefined (reading 'nodes')
at "html" (F:/#HexoBlog/blog/themes/arknights/source/css/_core/base.styl:3:1)
看来我应该试试1.15 并没有用Orz...我怀疑是电脑问题,但另一台也是这样
发现是我装的 hexo-renderer-stylus 模块中自带的stylus版本较低导致的问题
RT,控制台输出如下