Closed alvarosabu closed 3 years ago
@alvarosaburido can you try adding this entry on yourvite.config.ts
file?:
server: {
hmr: {
overlay: false,
},
}
Hi @userquin thanks for answering, I just tried but the same result unfortunately
compare your repo with pwa repo docs package or vueuse repo, we have not this problem, maybe you need to include your own theme
Basically, @userquin the difference is that on vueuse repo you have a really customized theme, it doesn't work with the default one.
Wouldn't make sense to allow adding aliases on the .vitepress/config
directly?
@alvarosaburido is your repo public?
@userquin I just realized the cause of my issue, I renamed .vitepress/config.ts
to a js file .vitepress/config.js
and now it works as expected.
I will close the issue if it's ok for you. Thanks a lot for the support
server: { hmr: { overlay: false, }, }
This helped me solving the issue
Describe the bug
Hello, awesome effort, looking forward to how this project grows.
Context: adding documentation with Vitepress to a vue3 library that uses aliases inside
/@
.Added
resolve.alias
using avite.config.ts
based on this https://github.com/vuejs/vitepress/issues/241It worked, but suddenly ignored completely the config on
docs/.vitepress/config.ts
(title, sidebar, nav, etc)Reproduction
vite.config.ts
insidedocs
roottitle
, also addthemeConfig
,nav
orsidebar
ondocs/.vitepress/config.ts
vitepress dev docs
Expected behavior
vite.config.ts
docs/.vitepress/config.ts
configs can live togetheror
An option to add
alias
todocs/.vitepress/config.ts
System Info