Skip to content

Issue with mmdc on Emacs #36

@nicolasshu

Description

@nicolasshu

For some reason, I can run mmdc nicely on my terminal, but I can't get it to run the appropriate mmdc command on emacs. I keep getting the following error:

SyntaxError: Unexpected token '.'
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)

which was happening when I used an older npm. I have already setup the variable for the path

  (setq ob-mermaid-cli-path "/home/username/.config/nvm/versions/node/v22.15.0/bin/mmdc")

yet it still fails. Do you know why this would happen?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions