question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Output file must end with ".svg", ".png" or ".pdf"

See original GitHub issue

Describe the bug I installed the mmdc v8.11.0 from homebrew using brew install mermaid-cli as described in documentation and run mmdc -i documentation.template.md -o documentation.md where documentation.template.md contains mermaid snippets in markdown file. Then, instead of getting transformed MD, I got the error Output file must end with ".svg", ".png" or ".pdf".

To Reproduce Steps to reproduce the behavior:

  1. Install latest mermaid-cli from Homebrew with brew install mermaid-cli
  2. Create a markdown file with mermaid blocks
  3. execute mmdc -i yourfile.md -o destination.md
  4. See the error

Expected behavior Instead of error, a transformed markdown file should appear.

Screenshots N/A

Desktop (please complete the following information):

  • OS: macOS
  • Browser: N/A
  • Version: 8.11.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
MindaugasLaganeckascommented, May 2, 2022

We are on release 9.0.3. Please, check if the error is fixed there.

1reaction
DoDoENTcommented, May 3, 2022

But even if I install from NPM with npm install -g mermaid, I still don’t get the version 9.0.3.

The version from npm, strangely, reports 0.2.4. What did I do wrong?

EDIT: OK, I needed to run npm install -g @mermaid-js/mermaid-cli. 😊 Then it works correctly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

3.2 PDF, PostScript, SVG, and PNG Output Options
An SVG or PNG file can only hold a single page. When PSPP outputs more than one page to SVG or PNG, it...
Read more >
SVG, PDF, JPG, PNG; What's the Difference? - 95Visual
This type of graphic file can be opened in any browser. SVG is used to create icons that are used on websites. An...
Read more >
SVG vs PNG: What Are the Differences and When to Use Them
While SVG supports animation, PNG does not. Raster file types like GIF and APNG can be considered alternatives. Still, there is no perfect ......
Read more >
JPEG, TIFF, PNG, SVG File Formats And When To Use Them
JPEG, TIFF, PNG and SVG have become standard file formats used everyday from websites to desktop publishing.
Read more >
SVG output file is just a wrapper for a PNG image!? #3749
I want to generate SVG maps in Python using Mapnik 3.0.13 (built from source). I'm using version 3.0.13 of the Python bindings as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found