You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FWIW I'm seeing the same (consistent) error in the Playground (under Safari 27.2):
D2 encountered an encoding error. Please help improve D2 by opening an issue on Github.
Nothing is rendered, all that's shown is the placeholder spinner. No errors in the network tab; JS console shows the following:
D2 Compile: Encode failed
Error: undefined is not an object (evaluating 'd2.encode')
s — out.js:1596:1049
...
Could not get D2 version:
Error: undefined is not an object (evaluating 'd2.version')
s — out.js:1596:1049
The d2.js fix merged in #2965. If you’re still seeing the error on play.d2lang.com, the site is running the earlier package. The next planned stable d2.js release will carry the fix, and we’ll confirm it on the live site in d2lang/d2-playground#113. Thanks for reporting this and narrowing it down to Safari 27.2.
Activity
nelsonjchen commentedon Nov 11, 2026
Seems fine now.
hjst commentedon Nov 16, 2026
FWIW I'm seeing the same (consistent) error in the Playground (under Safari 27.2):
Nothing is rendered, all that's shown is the placeholder spinner. No errors in the network tab; JS console shows the following:
nelsonjchen commentedon Nov 16, 2026
Ah, Safari, I am able to repro that issue.
nelsonjchen commentedon Nov 16, 2026
Looks like this project would need to vendor something to get rid of eagerly running a deadly regex.
d2lang/d2-playground#113
alixander commentedon Nov 19, 2026
The d2.js fix merged in #2965. If you’re still seeing the error on play.d2lang.com, the site is running the earlier package. The next planned stable d2.js release will carry the fix, and we’ll confirm it on the live site in d2lang/d2-playground#113. Thanks for reporting this and narrowing it down to Safari 27.2.