d2-obsidian icon indicating copy to clipboard operation
d2-obsidian copied to clipboard

error when importing .d2 files from same folder as the .md

Open Matt-Sim opened this issue 1 year ago • 0 comments

Steps

  1. create x.d2 x: { shape: circle }

  2. create x.md ```d2 ...@x ```

Expected:

x.md preview renders circle with x (see behaviour of VS Code plugin, open same files in VS Code and preview x.md)

Actual:

error

D2 Compilation Error: err: failed to compile -: -:1:1: failed to import "x.d2": open x.d2: no such file or directory

Environment

(btw: i'm also using Unitade plugin to edit .d2 files directly in Obsidian)

Obsidian 1.4.14

  • D2 plugin 1.1.4
  • Unitade 1.0.2

macOS Sonoma 14.1.2

VS Code 1.84

  • D2 plugin 0.8.8

Matt-Sim avatar Dec 07 '23 02:12 Matt-Sim