Replies: 1 comment 11 replies
-
Thanks for reporting, agree that we should have a A temporary solution could be to enhance the existing sidebar items generator to resolve the key conflicts and automatically adding a key to the corresponding sidebar items: https://docusaurus.io/docs/next/sidebar/autogenerated#customize-the-sidebar-items-generator Is your site using multiple locales? Do you also have conflicts on category labels? |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi docusaurus team,
I'm trying to migrate my docusaurus site to 3.9.1 but I have the following error:
Error: Multiple docs sidebar items produce the same translation key.
The following solution is proposed:
To avoid translation key conflicts, use the
key
attribute on the sidebar items above to uniquely identify them.I see how the issue can be solved when using sidebar file. But is there a way to add this key in the page front matter when sidebar is autogenerated?
Beta Was this translation helpful? Give feedback.
All reactions