Comments (5)
Thank you so much for the reply.
did you manage to get it work?
Not yet
Does install of plugins helped?
I have installed using gitbook install
It works fine in my demo example
I tried your demo with following steps:
- clone the example project to my local place;
- go to src/book;
- run
gitbook install
- run
gitbook serve
The same error happens:
phantom stdout: ReferenceError: Can't find variable: mermaid
phantom stdout: c:%5CUsers%5CHuangFeng%5Cworkspace%5Cgitbook-example%5Csrc%5Cb
ook%5Cnode_modules%5Cgitbook-plugin-mermaid%5Cconvert%5Cconverter.html:10
ReferenceError: Can't find variable: mermaid
c:%5CUsers%5CHuangFeng%5Cworkspace%5Cgitbook-example%5Csrc%5Cbook%5Cnode_modul
es%5Cgitbook-plugin-mermaid%5Cconvert%5Cconverter.html:34 in renderToSvg
phantomjs://webpage.evaluate():2
phantomjs://webpage.evaluate():3
phantomjs://webpage.evaluate():3
Then I edit gitbook-example\src\book\node_modules\gitbook-plugin-mermaid\convert\converter.html#line4: I copy content of mermaid.min.js into this html, and save.
Run gitbook serve
again, it works now.
I guess it is some fault of phantom, which can not load mermaid.min.js in my environment. Can you help find a solution? Or do you know how to debug and find out why phantom can not load mermaid.min.js into converter.html correctly?
PS: I am using win7 64bit
from gitbook-plugin-mermaid.
you're probably forgetting to install the plugins:
gitbook install ./
from gitbook-plugin-mermaid.
@saintshaga did you manage to get it work? Does install of plugins helped? It works fine in my demo example
from gitbook-plugin-mermaid.
@FrenchBen I had installed the plugins with gitbook install
from gitbook-plugin-mermaid.
I have never used this on windows, which does not have :/
I have published new version of a plugin, which does include #12. Maybe problem of white spaces in path to the phantomjs affects you as well.
from gitbook-plugin-mermaid.
Related Issues (20)
- the plugin got from npm does not work well HOT 1
- Allow title HOT 1
- error when running on windows HOT 3
- use mermaidAPI HOT 1
- Mermaid breaks when a variable ends in 'v' HOT 3
- Add support for Gitbook 3 HOT 2
- Add support for Node 5 and Node 6
- Add mermaid configuration HOT 1
- launch gitbook throw err "Error: Could not locate the bindings file. " HOT 2
- mermaid not work after installed from Gitbook Editor Plugin Store HOT 2
- mermaid plugin renders flowchart differently from the official mermaid
- Hand over gitbook-plugin-mermaid to GitbookIO HOT 3
- Do you have plan to support 'classDiagram' from office mermaid?
- It isnot used in MACOS10.12 HOT 1
- Which Gitbook Plugin? HOT 1
- Use directly phantomjs module instead of phantom HOT 8
- crash when used 'dev' as node id HOT 3
- Load mermaid graphs from external files HOT 5
- Disable useMaxWidth HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitbook-plugin-mermaid.