mermaid with Remix ESM module #4163
angelinekwan
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does anyone tried mermaid with Remix ? With the new v10, it support ESM only. Failed to get it working properly might be due to Remix to bundle the ESM module directly into the server build instead of requiring it at runtime causing the text node not matching between server and client side.
This code example works with basic react app setup but not in the context of Remix.
The following code example works sometime or in the case of multiple diagrams didn't get render with the following error, probably due to Remix to bundle the ESM module directly into the server build instead of requiring it at runtime causing the text node not matching between server and client side.
Importing ESM package to Remix - guide
Shortcode in markdown
::mermaid[flowchart TD;Start-->Stop;]{id="1"}
Expected to render this diagram
Beta Was this translation helpful? Give feedback.
All reactions