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] vuepress broken with vite@2.9 #781
Comments
This comment was marked as outdated.
This comment was marked as outdated.
@Mister-Hope , so far..
but none seems to work at this point. When the server starts, none of the packages (such as |
Please check this,
also, you may try using vite@2.8 with |
@Mister-Hope I agree. I'm pretty sure it is Changing to
|
Nope You should be able to use latest |
#784 may fix this |
Hi everyone, here is a possible workaround. If you are using yarn, add "resolution" in your package.json and force using {
// ...
"resolutions": {
"vite": "2.8.6"
},
} We are actually not responsable for potential breaking changes from deps chain. 🙂 Give us some time to investigate and fix this. |
vitejs/vite#7379 introduced some internal breaking changes, which broke the internal workaround plugin of vuepress-next. I'll update the workaround plugin soon. It's still a workaround, and we need to find a way to solve it completely in the future. |
New related bug #800. We will fix it soon. |
Workaround
Hi everyone, here is a possible workaround.
If you are using yarn, add "resolution" in your package.json and force using
vite@2.8
, then everything should work fine.If you are using npm, please make sure you are using
vite@2.8.x
by manualy declare"vite": "2.8.6"
then a clean install. That should work in most cases.We are actually not responsable for potential breaking changes from deps chain. 🙂 Give us some time to investigate and fix this.
-- Mr.Hope from VuePress Team
Here is the original issue:
Bug report
Description
VuePress was showing me this error on
useThemeLocaleData()
, so what I did was that I made a new branch and deleted all my project's dependencies and files, leaving only the VuePress code.I deleted my
node_modules
folder andpnpm-lock.yaml
, then did apnpm i
to install thenode_modules
and create thepnpm-lock.yaml
again. However this still did not work and showed the same error.Steps to reproduce
You can clone the repository here
Expected behavior
An empty VuePress app to run
Screenshots
Environment info
vuepress info
:The text was updated successfully, but these errors were encountered: