Closed inacho closed 3 years ago
Redoc also ships prism with itself, the global configs might be conflicting.
I noticed that the problem disappear if I add the language "scala" on top of "java":
module.exports = {
// ...
themeConfig: {
prism: {
additionalLanguages: ['java', 'scala'],
},
// ...
},
};
As you said, this is probably due to conflicts with prism in Redoc. I guess Redoc expects to have Scala enabled. Feel free to close the bug.
Thanks
Thanks for posting the solution 👍
How to reproduce
Add additional languages for the syntax highlighting in Docusarus (https://docusaurus.io/docs/markdown-features/code-blocks#supported-languages)
Example:
The additional language is correctly enabled in Docusaurus, however, when navigating to a Redocusaurus page the following error is happening:
Uncaught (in promise) TypeError: lang is undefined
Dependencies used in package.json
Any idea of how to fix it? Thanks