Skip to content

broken vl2png install #96

Description

@janrito

It looks like the versions of node and vega utils are getting messed up

train:
    needs: deploy-runner
    runs-on: [self-hosted, cml]
    ...
    container:
      # CML 0 DVC 3 UBUNTU 20.04
      image: docker://ghcr.io/iterative/cml:0-dvc3-base1
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3
        
      - name: Set up Python
        uses: actions/setup-python@v4
        with:
          python-version: "3.11.5"

      - uses: iterative/setup-dvc@v1
      - uses: iterative/setup-cml@v2
    run: |
      ...
      dvc plots show --show-vega plots/roc.yaml >vega.json
      vl2png vega.json >ROC.png
+ vl2png vega.json
/usr/lib/node_modules/vega-lite/build/vega-lite.js:219
  const duplicate = structuredClone;
                    ^

ReferenceError: structuredClone is not defined
    at /usr/lib/node_modules/vega-lite/build/vega-lite.js:219:21
    at /usr/lib/node_modules/vega-lite/build/vega-lite.js:2:66
    at Object.<anonymous> (/usr/lib/node_modules/vega-lite/build/vega-lite.js:5:3)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/usr/lib/node_modules/vega-lite/bin/render.js:7:18)
Error: Process completed with exit code 1.```

Activity

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