-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
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
Only works when using browserify'd code #373
Comments
Just downloaded the latest 6.0.0 and seems to be working fine without the use of browserify. Excellent! |
mgenereu
pushed a commit
to mgenereu/mermaid
that referenced
this issue
Jun 25, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that browserify is adding additional code to the base that allows Mermaid to work. If I only include mermaid.js on my HTML, I get the following error in JS console:
If I create a bundle.js via the following:
And change nothing else in my HTML except using bundle.js as created above, I get no errors.
What is browserify adding that cannot be included in the standalone mermaid.js? Why is browserify required?
The text was updated successfully, but these errors were encountered: