mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-29 13:33:06 +00:00
I was getting this error when running the examples:
```
Error: It looks like you've enabled language support, but haven't provided translated files. The document with id: 'en-doc1' doesn't exist.
```
However, this error was an indirect result of me not renaming the `docs-examples-from-docusaurus` directory to `docs` since I had `doc` in my
`headerLinks` in the example siteConfig.js.
So let's check the headerLinks and make sure we have the required directories.
Here is an example of the error if I try to load a Docusaurus site just after running `npm run examples` without having renamed the directories.
```
Error: You have 'doc' in your headerLinks, but no 'docs' folder exists one level up from 'website' folder. Are you running the examples? If so, make sure you rename 'docs-examples-from-docusaurus' to 'docs'.
at /Users/joelm/dev/test/website/node_modules/docusaurus/lib/core/nav/HeaderNav.js:226:15
:
:
```
Test Plan: Tested a local package in verdaccio
|
||
|---|---|---|
| .. | ||
| nav | ||
| BlogPageLayout.js | ||
| BlogPost.js | ||
| BlogPostLayout.js | ||
| BlogSidebar.js | ||
| CompLibrary.js | ||
| Container.js | ||
| Doc.js | ||
| DocsLayout.js | ||
| DocsSidebar.js | ||
| GridBlock.js | ||
| Head.js | ||
| Header.js | ||
| Marked.js | ||
| Prism.js | ||
| Site.js | ||
| SnackPlayer.js | ||
| WebPlayer.js | ||
| toSlug.js | ||
| unindent.js | ||