| name | docusaurus-build-fails-with-module-not-found |
| description | Sub-skill of docusaurus: Build Fails with Module Not Found (+6). |
| version | 1.0.0 |
| category | development |
| type | reference |
| scripts_exempt | true |
Build Fails with Module Not Found (+6)
Build Fails with Module Not Found
rm -rf node_modules .docusaurus build
npm install
npm run build
Hot Reload Not Working
npm run clear
npm run start
Broken Links
module.exports = {
onBrokenLinks: 'warn',
};
i18n Build Issues
npm run build -- --locale en
npm run write-translations -- --locale fr
Debug Mode
DEBUG=docusaurus* npm run build
npm run start -- --port 3001
Algolia Indexing Issues
module.exports = {
themeConfig: {
algolia: {
appId: 'YOUR_APP_ID',
apiKey: 'SEARCH_ONLY_KEY',
indexName: 'your_index',
debug: true,
},
},
};
Version Dropdown Not Showing
module.exports = {
themeConfig: {
navbar: {
items: [
{ type: 'docsVersionDropdown', position: 'right' },
],
},
},
};