terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.

Home Page:https://d2lang.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shape not found when importing a shape with a near

gavin-ts opened this issue · comments

when importing a shape with a near, there is a compiler error because the relative path becomes incorrect.

compiling x.d2 directly works, but not when compiling index.d2 which imports x.d2

Screenshot 2023-11-22 at 12 23 07 PM

index.d2

index
imported board: @x

x.d2

x
box2
x.near: box2