-
Notifications
You must be signed in to change notification settings - Fork 920
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 report] 开发环境下,修改文件 permalink
会导致 Failed to resolve import "xxx"
#1526
Comments
I believe this issue is related to vite, as I can trigger similar issue on a normal HMR of |
我尝试在 vuepress 旧版本中重现该问题,发现在 在这两个版本之间,vite 版本 确实发生了 更新 , 因此我相信 该问题跟 vite 有关 是对的。 |
bundler: viteBundler({
viteOptions: {
server: {
fs: {
cachedChecks: false,
},
},
},
}), Ref: vitejs/vite#15784 (comment) I just tried the snippet above in your repro link, and it's working well then. Not sure if we should set it as the default in |
I think we should set it as default value |
I have an issue in dev mode. I added the code above, as well as |
Are you sure you are doing the correct thing? |
I actually have no idea, sorry, I have no idea how Vue actually works and I have 0 programming experience |
Description
启动开发服务后,对 markdown 文件
frontmatter
字段的permalink
进行修改,保存文件后,均会导致错误。错误信息:
在重现中,修改
docs/permalink.md
文件即可重现该问题。Reproduction
https://stackblitz.com/edit/vuepress-lc5skn?file=docs%2FREADME.md
Used Package Manager
pnpm
System Info
The text was updated successfully, but these errors were encountered: