The new config validation reports that the following piece of configuration is invalid. However, it matches the documentation for syntax highlighting.
// docusaurus.config.js
module.exports = {
// ...
themeConfig: {
prism: {
additionalLanguages: ['kotlin', 'java'],
},
// ...
},
};
Removing/commenting out the additionalLanguages line fixes the validation error.
docusaurus startNo validation error for valid configuration
A validation error occured.
The validation system was added recently to Docusaurus as an attempt to avoid user configuration errors.
We may have made some mistakes.
If you think your configuration is valid and should keep working, please open a bug report.
ValidationError: "prism.additionalLanguages" is not allowed
Thanks! It's a mistake, I'll fix it
Most helpful comment
Thanks! It's a mistake, I'll fix it