Skip to content

TypeError: No graphs defined #8

Description

@ooker777

I run the command and get this error:

PS D:\Quả Cầu\B Nội dung\Knowledge graphs\Cây vấn đề\.obsidian\plugins\juggl\issue tree> jgfdot .\graph.json > graph.dot
C:\Users\ganuo\AppData\Roaming\npm\node_modules\jgf-dot\node_modules\graphlib-json-graph\index.js:19

        throw new TypeError("No graphs defined");
        ^

TypeError: No graphs defined
    at toGraph (C:\Users\ganuo\AppData\Roaming\npm\node_modules\jgf-dot\node_modules\graphlib-json-graph\index.js:19:8)
    at toDot (C:\Users\ganuo\AppData\Roaming\npm\node_modules\jgf-dot\index.js:7:22)
    at C:\Users\ganuo\AppData\Roaming\npm\node_modules\jgf-dot\bin\cli.js:9:24
    at Gatherer.<anonymous> (C:\Users\ganuo\AppData\Roaming\npm\node_modules\jgf-dot\node_modules\gather-stream\index.js:41:5)
    at Gatherer.emit (events.js:412:35)
    at finish (internal/streams/writable.js:657:10)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)

Here is the JSON: https://pastebin.com/Fy2tTEg2

This is the snippet from line 17 to line 21 in the index.js

	graphlibGraph.edges().forEach(function (name) {
		var edge = graphlibGraph.edge(name);
		if (edge.metadata)
			edge.metadata = JSON.stringify(edge.metadata);
	});

I use Windows 11 Home

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions