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

Vercel 部署失败,提示:lunr-search.html:8: function "warnf" not defined #244

Closed
codertesla opened this issue Aug 21, 2020 · 2 comments
Labels

Comments

@codertesla
Copy link

在Vercel 部署失败,提示如下:

lunr-search.html:8: function "warnf" not defined

自己手动复制了此文件,并修改为 errorf 后部署成功。

不清楚是 Vercel 的问题,还是 版本不兼容的问题。

请指正。

@reuixiy
Copy link
Owner

reuixiy commented Aug 21, 2020

Hugo 的版本问题,需指定为 latest 最新版

https://vercel.com/docs/build-step?query=hugo#framework-versioning

@codertesla
Copy link
Author

多谢指点。

因为不知道指定 latest 时,是否应该加引号,即是否: "HUGO_VERSION": "latest" ,暂时写为 "0.73.0",目前已正常。

顺带解决了一个 分类/tags标签下页面空白的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants