Sub-skill of docusaurus: Build Fails with Module Not Found (+6).
rm -rf node_modules .docusaurus build
npm install
npm run build
npm run clear
npm run start
module.exports = {
onBrokenLinks: 'warn', // Change from 'throw' for debugging
};
npm run build -- --locale en
npm run write-translations -- --locale fr
DEBUG=docusaurus* npm run build
npm run start -- --port 3001
// Check Algolia configuration
module.exports = {
themeConfig: {
algolia: {
appId: 'YOUR_APP_ID', // Not the API key
apiKey: 'SEARCH_ONLY_KEY', // Search-only API key
indexName: 'your_index',
debug: true, // Enable debug mode
},
},
};
// Ensure versions.json exists and navbar is configured
module.exports = {
themeConfig: {
navbar: {
items: [
{ type: 'docsVersionDropdown', position: 'right' },
],
},
},
};