-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Compatibility with node.js #257
Comments
I am using es2015 features. The pre-compiled libraries have been transformed to ecmascript5 via babel. If you use require directly you need to apply babel yourself. This has caused me some headache and I am thinking of rolling back to not use es2015 yet. Still deciding though. |
Closing issue as it's resolution is included in release 0.5.6. Let me know if you do not agree. |
👍 I will have a try. If I don't respond, then it means I find no problem. Thank you for your work! |
It works with node.js now. But it still depends on browser, you cannot do it purely in node.js. I found this todo in code: https://github.com/knsv/mermaid/blob/master/src/mermaidAPI.js#L486 I will create a separate issue for this. |
…yarn/develop/lint-staged-11.0.1 Bump lint-staged from 11.0.0 to 11.0.1
I first installed mermaid via
npm install mermaid
Then I created
index.temp.js
with only one line:require('mermaid');
It doesn't work for me:
The text was updated successfully, but these errors were encountered: