Skip to content
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

Cannot mix different versions of joi schemas #31

Closed
rafaelrdealmeida opened this issue Nov 18, 2020 · 11 comments · Fixed by #32 or #75
Closed

Cannot mix different versions of joi schemas #31

rafaelrdealmeida opened this issue Nov 18, 2020 · 11 comments · Fixed by #32 or #75

Comments

@rafaelrdealmeida
Copy link

I upgraded docusaurus alpha.66 to alpha.68 and I had a version conflict with joi. @ hapi/joi is in version 17.1.1 and joi is in version 17.3.0. wouldn't it be worth leaving joi@17.3.0 as a dependency instead of @ hapi/joi@17.1.1?

@weareoutman
Copy link
Member

Um, yes, we should upgrade the joi dependency now. This plugin is trying to keep joi the same version as Docusaurus, which alhpa.66 depends on @hapi/joi and now alpha.68 depends on joi.

@weareoutman
Copy link
Member

weareoutman commented Nov 19, 2020

@rafaelrdealmeida try v0.14.1 which supports docusaurus v2.0.0-alpha.68 ☕️

@rafaelrdealmeida
Copy link
Author

Hello it worked perfectly, thanks!

@eric-hc
Copy link

eric-hc commented Mar 15, 2021

I'm seeing this issue again with these versions 😟

"@docusaurus/core": "^2.0.0-alpha.71",
"@docusaurus/preset-classic": "^2.0.0-alpha.71",
"@easyops-cn/docusaurus-search-local": "^0.15.0",

@weareoutman
Copy link
Member

weareoutman commented Mar 16, 2021

@eric-hc oops, there is currently a workaround to fix this error, run npx yarn-deduplicate yarn.lock if you're using yarn, or run npm dedupe if you're using npm. (which will make docusaurus and this plugin to use the same version of Joi).

I will try to figure out a better solution to solve this issue later this week.

@weareoutman
Copy link
Member

Let's wait Docusaurus alpha 73 ☕️ . FYI facebook/docusaurus#4456 (comment)

weareoutman added a commit that referenced this issue Apr 20, 2021
BREAKING CHANGE: requires docusaurus ^2.0.0-alpha.73

fixes #31
@weareoutman
Copy link
Member

Try v0.16.0 with Docusaurus alpha 73.

szaimen added a commit to szaimen/Nextcloud-NAS-Guide that referenced this issue Dec 10, 2021
@ltribolet
Copy link

ltribolet commented Feb 25, 2022

I think this happening again with beta 16. Sorry I wasn't updating properly, my bad 🙇

@jason71708
Copy link

For someone who encounters this issue. Just delete your .lock file and install dependency again.

@BorjanKalinoski
Copy link

Removing package-lock.json, node_modules, and removing the ^ from the version, i.e. from ^17.6.0 to 17.6.0 fixed the issue.

Having a monorepo, different services installed different versions of joi, which caused the issue

@rosibaj
Copy link

rosibaj commented Sep 29, 2023

This is happening again i believe with the new Docusaurus beta.

[INFO] Docusaurus version: 3.0.0-beta.0
Node version: v18.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants