Skip to content

Add ProvidePlugin for Prism in Webpack config#440

Open
AlbertBrand wants to merge 3 commits into
rohit-gohri:mainfrom
AlbertBrand:main
Open

Add ProvidePlugin for Prism in Webpack config#440
AlbertBrand wants to merge 3 commits into
rohit-gohri:mainfrom
AlbertBrand:main

Conversation

@AlbertBrand

Copy link
Copy Markdown

Fixes "ReferenceError: Prism is not defined" when using @docusaurus/faster with additionalLanguages

Fixes "ReferenceError: Prism is not defined" when using @docusaurus/faster with additionalLanguages
@changeset-bot

changeset-bot Bot commented Apr 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6211399

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
docusaurus-theme-redoc Patch
redocusaurus Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Apr 17, 2026

Copy link
Copy Markdown

@AlbertBrand is attempting to deploy a commit to the Rohit Gohri's projects Team on Vercel.

A member of the Team first needs to authorize it.

@AlbertBrand

Copy link
Copy Markdown
Author

BTW I tried to add additionalLanguages to the website config but that does not trigger an error on Docusaurus 3.6. Bumping it to 3.10 and updating the config leads to another error, which is unrelated to this fix. @rohit-gohri I suggest you upgrade Docusaurus to 3.10 for the website, fixing the upgrade in another PR and then I can add the additionalLanguages config afterwards.

@AlbertBrand

Copy link
Copy Markdown
Author

Fixes #388

@rohit-gohri rohit-gohri left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a changeset and good to go

Comment thread packages/docusaurus-theme-redoc/src/index.ts Outdated
Co-authored-by: Rohit Gohri <code@rohit.page>
@AlbertBrand

Copy link
Copy Markdown
Author

For some reason running yarn changeset does not let me select anything else than a major bump (which is absolutely not the case here). Can you have a look @rohit-gohri?

…ing @docusaurus/faster with additionalLanguages
@AlbertBrand

Copy link
Copy Markdown
Author

Ah, found it. The TUI for changeset is not really great, I was supposed to not select anything for a major bump and then it goes to minor, patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants