Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default theme no longer working after upgrading to v2 #212

Closed
elie222 opened this issue Jun 5, 2023 · 2 comments
Closed

Default theme no longer working after upgrading to v2 #212

elie222 opened this issue Jun 5, 2023 · 2 comments
Assignees

Comments

@elie222
Copy link

elie222 commented Jun 5, 2023

I fixed it with the following:

<Highlight code={code} language={codeLanguage} theme={{ plain: {}, styles: [] }}>

This was causing errors:

<Highlight code={code} language={codeLanguage} theme={undefined}>

The error was:

Cannot destructure property 'plain' of 'theme17' as it is undefined.

@carloskelly13 carloskelly13 self-assigned this Jun 7, 2023
@carloskelly13
Copy link
Contributor

Good catch, we'll get this fixed up.

@carloskelly13
Copy link
Contributor

Please check out 2.0.5, if you're still having issues, please open a new one. Thanks!

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

No branches or pull requests

2 participants