broken vl2png install

Open
#96 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
node.js, typescript
Domain
ci-cd, devops

Research direction

Start by reproducing the GitHub Actions workflow shown in the issue, especially the setup-cml step and the vl2png vega.json command. Inspect how Node and Vega utilities are installed, then verify that the command runs without the reported structuredClone error in the CML container.

Written by the indexing model from the issue text.

Description

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.```
Dominant language
TypeScript
Stars
34
Forks
12
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from iterative/setup-cml

All issues in iterative/setup-cml

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.