Skip to content

Playground not working #2956

Closed
Closed

Activity

  1. nelsonjchen commented on Nov 11, 2026

    @nelsonjchen

    Seems fine now.

  2. hjst commented on Nov 16, 2026

    @hjst

    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
    
  3. nelsonjchen commented on Nov 16, 2026

    @nelsonjchen

    Ah, Safari, I am able to repro that issue.

  4. nelsonjchen commented on Nov 16, 2026

    @nelsonjchen

    Looks like this project would need to vendor something to get rid of eagerly running a deadly regex.

    d2lang/d2-playground#113

  5. alixander commented on Nov 19, 2026

    @alixander
    Collaborator

    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.

    • sent from alixander's Codex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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