Skip to content

version 11 not work < chrome 94 #6529

@qinbinhua601

Description

@qinbinhua601

Description

The version 11 not working < chrome 94. in my screenshot below is chrome 92. It seems the syntax Classes/Static_initialization_blocks not supported.
Image

Any idea on how to solve this issue if I want to use the lattest version of mermaid. It seems to work if I downgrade to version 9. What is the best way to support older verison of browser?

Image

I try to watch the useragent (chrome 92), and run the specified version of mermaid by inserting the script of the cdn to the document.body.

Steps to reproduce

  1. open chrome < 94, maybe just try 92.
  2. load the version 11 of mermaid run the script
  3. the syntax error showed.

Screenshots

No response

Code Sample


Setup

  • Mermaid version:
  • Browser and Version: [Chrome, Edge, Firefox]

Suggested Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageNeeds to be verified, categorized, etcType: Bug / ErrorSomething isn't working or is incorrect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions