Skip to content

Update to use vite + vitest #44

Update to use vite + vitest

Update to use vite + vitest #44

Triggered via pull request December 18, 2024 23:50
@cbeercbeer
synchronize #76
vite
Status Failure
Total duration 53s
Artifacts

node.js.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 1 warning
build (20.x)
Process completed with exit code 1.
build (22.x)
The job was canceled because "_20_x" failed.
__tests__/CanvasDownloadLinks.test.js > CanvasDownloadLinks > When Defined Sizes Are Present in infoResponse > renders download links for all specified sizes in the dialog: src/CanvasDownloadLinks.js#L72
TypeError: Cannot read properties of undefined (reading 'current') ❯ CanvasDownloadLinks.osdViewport src/CanvasDownloadLinks.js:72:38 ❯ CanvasDownloadLinks.currentBounds src/CanvasDownloadLinks.js:76:25 ❯ CanvasDownloadLinks.displayCurrentZoomLink src/CanvasDownloadLinks.js:107:25 ❯ CanvasDownloadLinks.render src/CanvasDownloadLinks.js:191:17 ❯ finishClassComponent node_modules/react-dom/cjs/react-dom.development.js:19781:31 ❯ updateClassComponent node_modules/react-dom/cjs/react-dom.development.js:19727:24 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21650:16 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:4164:14
build (22.x)
Process completed with exit code 1.
build (18.x)
The job was canceled because "_20_x" failed.
__tests__/CanvasDownloadLinks.test.js: node_modules/mirador/dist/cjs/src/index.js#L16
Error: require() of ES Module /home/runner/work/mirador-dl-plugin/mirador-dl-plugin/node_modules/react-dnd/dist/index.js from /home/runner/work/mirador-dl-plugin/mirador-dl-plugin/node_modules/mirador/dist/cjs/src/components/AppProviders.js not supported. Instead change the require of index.js in /home/runner/work/mirador-dl-plugin/mirador-dl-plugin/node_modules/mirador/dist/cjs/src/components/AppProviders.js to a dynamic import() which is available in all CommonJS modules. ❯ Object.<anonymous> node_modules/mirador/dist/cjs/src/components/AppProviders.js:11:17 ❯ Object.<anonymous> node_modules/mirador/dist/cjs/src/containers/AppProviders.js:11:21 ❯ Object.<anonymous> node_modules/mirador/dist/cjs/src/components/App.js:10:44 ❯ Object.<anonymous> node_modules/mirador/dist/cjs/src/lib/MiradorViewer.js:9:35 ❯ Object.<anonymous> node_modules/mirador/dist/cjs/src/init.js:7:45 ❯ Object.<anonymous> node_modules/mirador/dist/cjs/src/index.js:16:36 ❯ __tests__/CanvasDownloadLinks.test.js:3:31 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_REQUIRE_ESM' }
__tests__/MiradorDownloadDialog.test.js: node_modules/mirador/dist/cjs/src/index.js#L16
Error: require() of ES Module /home/runner/work/mirador-dl-plugin/mirador-dl-plugin/node_modules/react-dnd/dist/index.js from /home/runner/work/mirador-dl-plugin/mirador-dl-plugin/node_modules/mirador/dist/cjs/src/components/AppProviders.js not supported. Instead change the require of index.js in /home/runner/work/mirador-dl-plugin/mirador-dl-plugin/node_modules/mirador/dist/cjs/src/components/AppProviders.js to a dynamic import() which is available in all CommonJS modules. ❯ Object.<anonymous> node_modules/mirador/dist/cjs/src/components/AppProviders.js:11:17 ❯ Object.<anonymous> node_modules/mirador/dist/cjs/src/containers/AppProviders.js:11:21 ❯ Object.<anonymous> node_modules/mirador/dist/cjs/src/components/App.js:10:44 ❯ Object.<anonymous> node_modules/mirador/dist/cjs/src/lib/MiradorViewer.js:9:35 ❯ Object.<anonymous> node_modules/mirador/dist/cjs/src/init.js:7:45 ❯ Object.<anonymous> node_modules/mirador/dist/cjs/src/index.js:16:36 ❯ src/MiradorDownloadDialog.js:4:31 ❯ __tests__/MiradorDownloadDialog.test.js:3:31 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_REQUIRE_ESM' }
build (18.x)
The operation was canceled.
build (20.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636