Accessing non-existent property
问题复现
使用HEXO部署时,控制台输出警告
1 | (node:18256) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency |
错误原因
Stylus与Node版本不兼容
参考: https://github.com/stylus/stylus/pull/2538
npm ls stylus
输出如下,hexo
使用的是0.54.7
版本
1 | └─┬ [email protected] |
解决方法
参考:https://github.com/stylus/stylus/pull/2538/commits/16e2a6c6f96f80b0d700411879f1c13991a0a1a5
Stylus0.54.8及以上版本被修复
升级HEXO使用的hexo-renderer-stylus为最新版
1 | yarn upgrade hexo-renderer-stylus |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 AlMirai!