-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Build 阶段:当posts下包含子文件夹会构建失败 #358
Comments
请将子文件内的一个md文档重命名为index.md |
请提供可复现文件。 |
但这样这篇文章的路径名就不具有可读性了 |
这里的报错是子文件夹缺少了一个index.md的文件,构建不出来名为 |
@YunYouJun
当删除子目录,只在 posts 目录留有md文件就可以编译成功 @MengNianxiaoyao |
给个测试用例,可能是多方因素导致的。只是描述会忽略很多问题。 |
此仓库可以复现构建问题,GitHub Action中有相关日志:https://github.com/zsbai/valaxy-test/actions/runs/7990544710/job/21819591074 测试完成后请告知~方便删除测试仓库 |
大致知道原因了,这是一个边界情况,你可以通过 index.md 临时解决,稍后会修复。 |
Fixed in v0.18.3 |
Describe the bug
当 posts 文件夹包含子文件夹的时候,通过
pnpm dev
本地预览可以正常渲染,但是构建pnpm run build
就会报错,我的习惯时会在posts下通过年份区分博文,下面是构建日志:Reproduction
pnpm run build
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: