Open killroyboy opened 4 years ago
I've created a repo that replicates the problem: https://github.com/killroyboy/vuepress-clean-urls-test
It currently shows the error when building. Commenting out the vuepress-plugin-clean-urls
settings in config.js allows building without errors.
Strange. This plugin should not have this kind of side effect. I'll try to confirm it.
@killroyboy I cannot reproduce the bug totally.
In your repo:
docs/.vuepress/public
totally but there are still errors.docs/README.md
to docs/a.md
and things work well.So seems like this is not caused by the config.yml
and index.html
files?
@killroyboy I cannot reproduce the bug totally.
I'm not sure that makes me feel any better. So my diagnosis was obviously incorrect.
In my testing, if the file is named README.md or index.md, the build fails.
@meteorlxy Figured it out. Well, not the reason, but a workaround.
If I remove indexSuffix
from my plugin options then the build completes.
Perhaps it doesn't like indexSuffix
set to empty quotes?
Hopefully, that gives you some additional ideas of the root cause.
Uh, well, it maybe related to the known issue https://github.com/vuepress/vuepress-plugin-clean-urls/issues/1
There are still some issues of this plugin before migration to this repo
Ahh... I was unaware of the other repo. I'm assuming we should leave this bug in place seeing as the other repo is archived?
Environment
Describe the bug
I have added an index.html and config.yml file (for NetlifyCMS integration). This works perfectly until I enable the clean-urls plugin. It appears this plugin is attempting to parse them in some way.
Steps To Reproduce
vuepress build
Results in the following errors when run with --debug (I renamed by "doc" folder to "src"):
Screenshots
Expected behavior
Build should be completed without errors.
Additional context