We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
react-highlight/lib/optimized
_highlight2.default.registerLanguage is not a function
When using the following import:
import Highlight from "react-highlight/lib/optimized";
It gives the following error:
TypeError: _highlight2.default.registerLanguage is not a function
This did not happen using 0.12.0, but happens with 0.14.0.
0.12.0
0.14.0
I can temporarily fix it using:
import Highlight from "react-highlight";
I tested this with highlight.js 10.5.0 and 10.6.0
10.5.0
10.6.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using the following import:
It gives the following error:
This did not happen using
0.12.0
, but happens with0.14.0
.I can temporarily fix it using:
I tested this with highlight.js
10.5.0
and10.6.0
The text was updated successfully, but these errors were encountered: