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
Currently Joi disallows mixing different versions of joi schema, however, we cannot make sure Docusaurus and plugins use the same version of Joi if they specifies their own dependencies. Like this issue happened after a new Docusaurus version released.
Users can do a dedupe to fix this problem, but it's pretty annoying since Docusaurus releases frequently.
Another workaround maybe specifying Joi as a peer dependency in plugins, but I think it cannot always work, because Docusaurus and plugins are peers, but their own dependencies are not.
Pitch
(Please explain why this feature should be implemented and how it would be used.)
The text was updated successfully, but these errors were encountered:
🚀 Feature
Provide a way to let plugins (such as my plugin) be compatible across Docusaurus versions, which both use Joi to do validation of options.
Have you read the Contributing Guidelines on issues?
yes
Motivation
Currently Joi disallows mixing different versions of joi schema, however, we cannot make sure Docusaurus and plugins use the same version of Joi if they specifies their own dependencies. Like this issue happened after a new Docusaurus version released.
Users can do a dedupe to fix this problem, but it's pretty annoying since Docusaurus releases frequently.
Another workaround maybe specifying Joi as a peer dependency in plugins, but I think it cannot always work, because Docusaurus and plugins are peers, but their own dependencies are not.
Pitch
(Please explain why this feature should be implemented and how it would be used.)
The text was updated successfully, but these errors were encountered: