Looking at this issue on the Mermaid GitHub it seems that the elk layout is not working for Mermaid version 11.*. However the comments suggest that elk is not part of the default Mermaid package and their GitHub releases seems to indicate that it is packaged separately.
Well, the elk engine has been moved to a separate package, because of the different licensing in mermaid and elk. Pull Reference here
I honestly don't know what's needed to include the library directly in the build, without breaking the
EPL-2.0 license, but it should be totally feasible.
It can also be shipped as a separate plugin, if needed.