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
Describe the bug When using two different code blocks with different languages the produced web page produces an error with a redefined const.
To Reproduce
import reflex as rx def test_page() -> rx.Component: return rx.vstack( rx.code_block( "{}", language="json", show_line_numbers=True, ), rx.code_block( "print(abc)", language="python", show_line_numbers=True, ), )
Expected behavior Page should work
Screenshots
export function Fragment_ba4570fd3640bc8a8c5632b9f9459180 () { const reflex___state____state = useContext(StateContexts.reflex___state____state) const { resolvedColorMode } = useContext(ColorModeContext) const _language = "json" if (_language) { (async () => { try { const module = await import(`react-syntax-highlighter/dist/cjs/languages/prism/${_language}`); SyntaxHighlighter.registerLanguage(_language, module.default); } catch (error) { console.error(`Error importing language module for ${_language}:`, error); } })(); } const _language = "python" return ( <Fragment>
Specifics (please complete the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
ENG-4255 Code blocks lead to redefined const in web page
Sorry, something went wrong.
@ElijahAhianyo do you know what should be done here? :o
masenf
No branches or pull requests
Describe the bug
When using two different code blocks with different languages the produced web page produces an error with a redefined const.
To Reproduce
Expected behavior
Page should work
Screenshots
Specifics (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: