Skip to content
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

Uncaught TypeError: _.constant is not a function (mermaid.js) #626

Closed
SunilPetkar opened this issue Feb 15, 2018 · 1 comment
Closed

Uncaught TypeError: _.constant is not a function (mermaid.js) #626

SunilPetkar opened this issue Feb 15, 2018 · 1 comment

Comments

@SunilPetkar
Copy link

When i am trying to load mermaid.js in my angularjs directive it give me error Uncaught TypeError: _.constant is not a function
at Object. (:3001/assets/lib/mermaid/mermaid.js:51354)

@tylerlong
Copy link
Collaborator

I have no experience with angularjs. But mermaid works with HTML without problem: https://github.com/knsv/mermaid/blob/f62736c7496cccb486b93a155da038baeba700e8/dist/index.html#L106

Where did you get the mermaid.js file and how did you try to load it?

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants