-
Hello. I followed this guide to use plantuml from @yhatt. But I get the error bellow. engine.js file const { Marp } = require('@marp-team/marp-core')
module.exports = {
engine: opts => new Marp(opts).use(require('markdown-it-plantuml'))
} package.json file
plantuml.md file ---
marp: true
---
<!-- https://github.com/orgs/marp-team/discussions/219 -->
@startuml
actor actor
actor/ "actor/"
agent agent
artifact artifact
boundary boundary
card card
circle circle
cloud cloud
collections collections
component component
control control
database database
entity entity
file file
folder folder
frame frame
hexagon hexagon
interface interface
label label
node node
package package
person person
queue queue
rectangle rectangle
stack stack
storage storage
usecase usecase
usecase/ "usecase/"
@enduml command line npx marp --engine ./engine.js plantuml.md |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The
An engine script that is passed by If it was still not working, try updating every Marp tools to the latest versions. I found from your |
Beta Was this translation helpful? Give feedback.
The
engine.js
script you've provided is actually a configuration file for Marp CLI, not an engine. Therefore, use-c
instead of--engine
to pass the setting to CLI.An engine script that is passed by
--engine
must export a JavaScript class or function throughmodule.exports
.If it was still not working, try updating every Marp tools to the latest versions. I found from your
package.json
that you seems to be depending on very old versions of Marp tools.