mermaidjs / mermaid-live-editor

Location has moved to https://github.com/mermaid-js/mermaid-live-editor
https://mermaidjs.github.io/mermaid-live-editor/
MIT License
977 stars 181 forks source link

index.html does not show anything #17

Closed iwittkau closed 6 years ago

iwittkau commented 6 years ago

I saw the comment in the dockerfile discussion (#8), so I cloned the master branch into my local nginx html folder:

Firefox shows a blank page with the console output:

09:55:05.312 SyntaxError: import declarations may only appear at top level of a module index.js:1

Chrome fails with:

index.js:1 Uncaught SyntaxError: Unexpected identifier

Tried it with http-server, same result. Opening the index.html directly, same result.


OS: macOS 10.13.2 (17C205) FF: 57.0.4 (64-Bit) Chrome: 63.0.3239.132 (official build) (64-Bit)

tylerlong commented 6 years ago

Please open docs/index.html instead. ./index.html is for development only.