Open uwussimo opened 1 year ago
Definitely an issue, still exists.
Hm...
Fix for me:
replace
"devDependencies": {
"@vuepress/plugin-docsearch": "^2.0.0-beta.50",
"@vuepress/plugin-theme-data": "^2.0.0-beta.50",
"vuepress": "^2.0.0-beta.50"
},
with
"devDependencies": {
"@vuepress/plugin-docsearch": "2.0.0-beta.54",
"@vuepress/plugin-theme-data": "2.0.0-beta.54",
"vuepress": "2.0.0-beta.54"
},
I still see this error.
I have the same problem
I have the same problem
I upgraded to 2.0.0-beta.61 versions and am still getting this error. Is there a workaround?
Yep, same issue here
Also experiencing this issue for 2.0.0-beta.61. Any status on when this will be fixed?... Or at least a work-around?
+1, moved to use pnpm
Also experiencing this issue for 2.0.0-beta.61. Any status on when this will be fixed?... Or at least a work-around?
On my side, I ran yarn
and selected a version for vuepress-vite
interactively. I then modified the lockfile like so:
- vuepress-vite@2.0.0-beta.50-pre.1:
+ vuepress-vite@2.0.0-beta.61:
version "2.0.0-beta.61"
resolved "https://registry.yarnpkg.com/vuepress-vite/-/vuepress-vite-2.0.0-beta.61.tgz#04058551e6be014e9f2dee14c5d8043b158e032d"
integrity sha512-4mcR8XSY5b36CYkPqF80WvoeGAEjTw6Cr9bMPHrPVSjG4qqyfVpdSdyRtXD+/5aLJB7r/L60J7PI1pKTci1+3w==
dependencies:
"@vuepress/bundler-vite" "2.0.0-beta.61"
"@vuepress/cli" "2.0.0-beta.61"
"@vuepress/core" "2.0.0-beta.61"
"@vuepress/theme-default" "2.0.0-beta.61"
vuepress@^2.0.0-beta.61:
version "2.0.0-beta.50-pre.1"
resolved "https://registry.yarnpkg.com/vuepress/-/vuepress-2.0.0-beta.50-pre.1.tgz#26eec90444bb37590f29d10dd5923e75c476189f"
integrity sha512-4Finc3GDscIqgRFAZFwa4SUm8tIFSVQIxnPIpQPW3kaM37rKylvUDkLrs2lMvoDPTAAE+Kf+v34tAFX+ZMGKUg==
dependencies:
- vuepress-vite "2.0.0-beta.50-pre.1"
+ vuepress-vite "2.0.0-beta.61"
Adding the yarn.lock
file to the repo then enables me to reinstall everything non-interactively with a simple yarn
command, which should modify the rest of the lockfile correctly.
I’m not sure how this could be done with npm, however.
By running the command "yarn add -D vuepress@next", the issue can be resolved. You can see that the devDependencies have added a line "@vuepress/bundler-vite": "^2.0.0-beta.51".
Just leaving this here, since it cost me some time to realize:
If you are getting this error because you tried to run npm up
on your project, make sure to fix the version of vuepress in your package.json first.
"dependencies": { "vuepress": "2.0.0-beta.61" }
instead of ^2.0.0-beta.61
.
The npm semver algorythm seems to get confused with beta tags and tries to upgrade to an older package, which is why you get this error then.
✌️
"vuepress":"^2.0.0-beta.51"
to "vuepress": "2.0.0-beta.51"
solved itThe issue is if you are using a range for the beta version, there is an invalid 2.0.0-beta.50-pre.1.
version that has been published, because semantic versionning considers it a higher version than say 2.0.0-beta.64
It's a tricky situation to fix this now unless the beta is somehow bumped to 2.0.1-beta
To avoid it for now, pin the vuepress dependency to your desired version (eg: "vuepress": "2.0.0-beta.64"
)
Bug report
While installing vuepress on vercel, it tries to find 2.0.0-beta.50-pre.1 which doesn't exist as far as I understood.
Steps to reproduce
Download the latest version of vuepress and try to deploy it somewhere
What is expected?
Simply install everything and work correctly
What is actually happening?
Other relevant information
Output of
npx vuepress info
in my VuePress project:System: OS: macOS 13.0 CPU: (8) arm64 Apple M1 Memory: 86.95 MB / 8.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.11.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 8.19.2 - /opt/homebrew/bin/npm Utilities: Git: 2.37.1 - /usr/bin/git Browsers: Chrome: Not Found Edge: Not Found Firefox: 106.0 Safari: 16.1 npmPackages: @vuepress/bundler-vite: 2.0.0-beta.53 @vuepress/bundler-webpack: Not Found @vuepress/cli: 2.0.0-beta.53 @vuepress/client: 2.0.0-beta.53 => 2.0.0-beta.53 (2.0.0-beta.50-pre.1) @vuepress/core: 2.0.0-beta.53 (2.0.0-beta.50-pre.1) @vuepress/markdown: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-active-header-links: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-back-to-top: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-container: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-docsearch: ^2.0.0-beta.53 => 2.0.0-beta.50-pre.1 @vuepress/plugin-external-link-icon: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-git: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-google-analytics: Not Found @vuepress/plugin-medium-zoom: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-nprogress: ^2.0.0-beta.53 => 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-palette: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-prismjs: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-pwa: ^2.0.0-beta.53 => 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-pwa-popup: 2.0.0-beta.53 => 2.0.0-beta.53 @vuepress/plugin-register-components: Not Found @vuepress/plugin-search: ^2.0.0-beta.53 => 2.0.0-beta.50-pre.1 @vuepress/plugin-shiki: Not Found @vuepress/plugin-theme-data: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-toc: ^2.0.0-beta.53 => 2.0.0-beta.50-pre.1 @vuepress/shared: 2.0.0-beta.53 (2.0.0-beta.50-pre.1) @vuepress/theme-default: ^2.0.0-beta.53 => 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/utils: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) vue: 3.2.41 vue-loader: Not Found vue-router: 4.1.6 vuepress: ^2.0.0-beta.53 => 2.0.0-beta.50-pre.1 vuepress-vite: 2.0.0-beta.53 => 2.0.0-beta.53 vuepress-webpack: Not Found