Skip to content

Update vega

Update vega #241

Triggered via pull request November 26, 2025 08:43
Status Failure
Total duration 1m 0s
Artifacts

frontend-ci.yml

on: pull_request
npm-tests-demo
45s
npm-tests-demo
Matrix: npm-tests-lib
Fit to window
Zoom out
Zoom in

Annotations

6 errors
npm-tests-demo
Process completed with exit code 1.
npm-tests-lib (20.x)
Process completed with exit code 1.
npm-tests-lib (18.x)
The strategy configuration was canceled because "npm-tests-lib._20_x" failed
npm-tests-lib (18.x)
The operation was canceled.
src/plugins/vega/index.test.ts: chartlets.js/node_modules/react-vega/lib/index.js#L11
Error: require() of ES Module /home/runner/work/chartlets/chartlets/chartlets.js/node_modules/vega/build/vega.module.js from /home/runner/work/chartlets/chartlets/chartlets.js/node_modules/react-vega/node_modules/vega-embed/build/vega-embed.js not supported. Instead change the require of vega.module.js in /home/runner/work/chartlets/chartlets/chartlets.js/node_modules/react-vega/node_modules/vega-embed/build/vega-embed.js to a dynamic import() which is available in all CommonJS modules. ❯ ../../node_modules/react-vega/node_modules/vega-embed/build/vega-embed.js:2:93 ❯ Object.<anonymous> ../../node_modules/react-vega/node_modules/vega-embed/build/vega-embed.js:5:2 ❯ Object.<anonymous> ../../node_modules/react-vega/lib/utils/updateSingleDatasetInView.js:6:18 ❯ Object.<anonymous> ../../node_modules/react-vega/lib/utils/updateMultipleDatasetsInView.js:6:57 ❯ Object.<anonymous> ../../node_modules/react-vega/lib/Vega.js:12:60 ❯ Object.<anonymous> ../../node_modules/react-vega/lib/index.js:11:36 ❯ src/plugins/vega/VegaChart.tsx:2:31 ❯ src/plugins/vega/index.ts:1:31 ❯ src/plugins/vega/index.test.ts:2:31 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_REQUIRE_ESM' }
src/plugins/vega/VegaChart.test.tsx: chartlets.js/node_modules/react-vega/lib/index.js#L11
Error: require() of ES Module /home/runner/work/chartlets/chartlets/chartlets.js/node_modules/vega/build/vega.module.js from /home/runner/work/chartlets/chartlets/chartlets.js/node_modules/react-vega/node_modules/vega-embed/build/vega-embed.js not supported. Instead change the require of vega.module.js in /home/runner/work/chartlets/chartlets/chartlets.js/node_modules/react-vega/node_modules/vega-embed/build/vega-embed.js to a dynamic import() which is available in all CommonJS modules. ❯ ../../node_modules/react-vega/node_modules/vega-embed/build/vega-embed.js:2:93 ❯ Object.<anonymous> ../../node_modules/react-vega/node_modules/vega-embed/build/vega-embed.js:5:2 ❯ Object.<anonymous> ../../node_modules/react-vega/lib/utils/updateSingleDatasetInView.js:6:18 ❯ Object.<anonymous> ../../node_modules/react-vega/lib/utils/updateMultipleDatasetsInView.js:6:57 ❯ Object.<anonymous> ../../node_modules/react-vega/lib/Vega.js:12:60 ❯ Object.<anonymous> ../../node_modules/react-vega/lib/index.js:11:36 ❯ src/plugins/vega/VegaChart.tsx:2:31 ❯ src/plugins/vega/VegaChart.test.tsx:5:31 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_REQUIRE_ESM' }