-
-
Notifications
You must be signed in to change notification settings - Fork 847
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
TypeError when using react-syntax-highlighter #570
Comments
What text are you passing? |
I tried
I don't think this has anything to do with props being redefined inside the code renderer, because it's also undefined when the code renderer is moved to a seperate function. I've also tried calling the |
Probably the old broken HTML parser. So this should be fixed by #563, which’ll land soon, as a major new version |
Thanks! Is there any way I could update to the new html parser? I read about a new upcoming release in the readme, but can I just |
Going to release it today/tomorrow or so. First have to think if there should be some more things landing with it |
Released! |
Please see the readme, it has examples: https://github.com/remarkjs/react-markdown#use-custom-components-syntax-highlight |
Subject of the issue
I get this error when I try to use react-syntax-highlighter with react-markdown:
It looks like an internal react-markdown error so I figured this is the right place to submit this issue
Your environment
typescript@4.2.3
react-markdown@5.0.3
react-syntax-highlighter@15.4.3
next@10.0.9
react@17.0.2
Steps to reproduce
Expected behavior
The code should compile fine and display beautiful highlighted code ✨
Actual behavior
TypeError: Cannot read property 'children' of undefined :(
The text was updated successfully, but these errors were encountered: