Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 回报:每次构建都会报“variable @fa-css-prefix is undefined” #175

Closed
3 tasks done
xheiu opened this issue Jan 22, 2023 · 4 comments
Closed
3 tasks done
Labels
🐛bug Something isn't working

Comments

@xheiu
Copy link

xheiu commented Jan 22, 2023

报告前须知

  • 我确认该 Bug 是可复现的,我会根据下面的模板提供完整详尽的复现步骤
  • 我确认已认真阅读 ReadMe.md 和 文档,确认描述的内容有误或是不能解决我的问题
  • 我已知晓如果没有认真阅读且勾选这里所有的条目,或是没有使用此模板认真详细地描述问题,是对彼此时间的浪费,我的 issue 可能会被无解释关闭

安装方式

Git clone 项目仓库至 themes 目录下

对 Bug 的描述

每次到这里就开始这样子了
03:35:36.794 DEBUG Rendering HTML _pages/search-page: search/index.html
03:35:42.127 ERROR Asset render failed: vendors/[email protected]/less/animated.css
variable @fa-css-prefix is undefined
03:35:42.127 ERROR Asset render failed: vendors/[email protected]/less/bordered-pulled.css
variable @fa-css-prefix is undefined
03:35:42.127 ERROR Asset render failed: vendors/[email protected]/less/fixed-width.css
variable @fa-css-prefix is undefined
03:35:42.127 ERROR Asset render failed: vendors/[email protected]/less/core.css
variable @fa-css-prefix is undefined
03:35:42.127 ERROR Asset render failed: vendors/[email protected]/less/icons.css
variable @fa-css-prefix is undefined
03:35:42.128 ERROR Asset render failed: vendors/[email protected]/less/list.css
variable @fa-css-prefix is undefined
03:35:42.128 ERROR Asset render failed: vendors/[email protected]/less/larger.css
variable @fa-css-prefix is undefined
03:35:42.128 ERROR Asset render failed: vendors/[email protected]/less/rotated-flipped.css
variable @fa-css-prefix is undefined
03:35:42.128 ERROR Asset render failed: vendors/[email protected]/less/path.css
variable @fa-font-path is undefined
03:35:42.128 ERROR Asset render failed: vendors/[email protected]/less/screen-reader.css
No matching definition was found for .sr-only()
03:35:42.128 ERROR Asset render failed: vendors/[email protected]/less/stacked.css
variable @fa-css-prefix is undefined
03:36:02.439 INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.

复现的方法

就是
hexo s --debug

期望的行为

应该正常情况下没这个把

相关的截图

WindowsTerminal_oeWhiYmzzG

运行环境

hexo 6.3.0
npm 8.15.0
node v16.17.0

主题配置文件

vendors下的没有改动过

站点配置文件

No response

补充内容

这是正常情况吗,每次到这里会有些耗时,但网站还是可以正常访问

@xheiu xheiu changed the title 每次构建都会报“variable @fa-css-prefix is undefined” Bug 回报:每次构建都会报“variable @fa-css-prefix is undefined” Jan 22, 2023
@ArcticLampyrid ArcticLampyrid added the 🐛bug Something isn't working label Jan 22, 2023
@ArcticLampyrid
Copy link
Collaborator

https://github.com/Candinya/Kratos-Rebirth/actions/runs/3927900835/jobs/6930077085
没有在 GitHub Actions 中发现类似现象,请问您可以发一下 package.json 吗。
怀疑可能与您安装了 CSS 压缩工具等情况有关

@xheiu
Copy link
Author

xheiu commented Jan 30, 2023

https://github.com/Candinya/Kratos-Rebirth/actions/runs/3927900835/jobs/6930077085 没有在 GitHub Actions 中发现类似现象,请问您可以发一下 吗。 怀疑可能与您安装了 CSS 压缩工具等情况有关package.json

这是

"dependencies": {
    "hexo": "^6.3.0",
    "hexo-abbrlink": "^2.2.1",
    "hexo-autonofollow": "^1.0.1",
    "hexo-generator-archive": "^2.0.0",
    "hexo-generator-baidu-sitemap": "^0.1.9",
    "hexo-generator-category": "^2.0.0",
    "hexo-generator-feed": "^3.0.0",
    "hexo-generator-index": "^3.0.0",
    "hexo-generator-json-content": "^4.2.3",
    "hexo-generator-sitemap": "^3.0.1",
    "hexo-generator-tag": "^2.0.0",
    "hexo-renderer-ejs": "^2.0.0",
    "hexo-renderer-less": "^4.0.0",
    "hexo-renderer-marked": "^6.0.0",
    "hexo-renderer-stylus": "^2.1.0",
    "hexo-server": "^3.0.0",
    "hexo-simple-mindmap": "^0.8.0",
    "hexo-theme-landscape": "^0.0.3",
    "hexo-yam": "^7.0.0"
}

我试着注释掉_config.yml中yam设置也还是有这段报错

@ArcticLampyrid
Copy link
Collaborator

try to remove hexo-renderer-less

@xheiu
Copy link
Author

xheiu commented Jan 31, 2023

尝试删除hexo-renderer-less

感谢,确实解决了这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants