You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When starts to dev the examples/minimal in this repository. The first load will trigger a runtime error which is the same as vuejs/core#4344. Everything goes well unless using a linked vitepress so the users won't encounter this error. But it breaks #1012 because of the first load crash. And after a page reload, everything goes well and won't crash anymore, the crash only happens when creating .vite cache. I think it's because packages are optimized by Vite which does not in an un-linked scenario.
link
un-link
I have a workaround to make #1012 pass but I don't really know why packages such as body-scroll-lock are optimized by Vite 🤔. Also, since we are migrating to Vite3, does this issue still exists in Vite3 based vitepress yet? @brc-dd
Good to hear that. When would the chore/vite-3 branches be merged into main? I will use a workaround to make #1012 pass if chore/vite-3 still needs some time to be merged.
When would the chore/vite-3 branches be merged into main?
It will likely take some time because there are a lot of changes, its hard to review and test them. You can add that workaround if you want. It can be removed later if Vite 3 PR is merged before your one.
Describe the bug
When starts to dev the
examples/minimal
in this repository. The first load will trigger a runtime error which is the same as vuejs/core#4344. Everything goes well unless using a linked vitepress so the users won't encounter this error. But it breaks #1012 because of the first load crash. And after a page reload, everything goes well and won't crash anymore, the crash only happens when creating.vite
cache. I think it's because packages are optimized by Vite which does not in an un-linked scenario.link
un-link
I have a workaround to make #1012 pass but I don't really know why packages such as body-scroll-lock are optimized by Vite 🤔. Also, since we are migrating to Vite3, does this issue still exists in Vite3 based vitepress yet? @brc-dd
Reproduction
main
branchpnpm i && pnpm build
cd examples/minimal
pnpm dev --force
Expected behavior
no crash at the first page load
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: