Skip to content

Use vite to replace webpack etc #1229

Use vite to replace webpack etc

Use vite to replace webpack etc #1229

Triggered via pull request November 27, 2024 20:34
@cbeercbeer
synchronize #3985
vite-WIP
Status Failure
Total duration 6m 4s
Artifacts

node.js.yml

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

Annotations

11 errors
Unhandled error: src/lib/OpenSeadragonCanvasOverlay.js#L95
TypeError: Cannot read properties of null (reading 'translate') ❯ OpenSeadragonCanvasOverlay.canvasUpdate src/lib/OpenSeadragonCanvasOverlay.js:95:20 ❯ AnnotationsOverlay.updateCanvas src/components/AnnotationsOverlay.js:272:29 ❯ AnnotationsOverlay.onUpdateViewport src/components/AnnotationsOverlay.js:247:10 ❯ node_modules/openseadragon/src/eventsource.js:193:33 ❯ $.Viewer.raiseEvent node_modules/openseadragon/src/eventsource.js:217:13 ❯ drawWorld node_modules/openseadragon/src/viewer.js:3916:12 ❯ updateOnce node_modules/openseadragon/src/viewer.js:3858:9 ❯ updateMulti node_modules/openseadragon/src/viewer.js:3759:5 ❯ node_modules/openseadragon/src/viewer.js:2791:9 ❯ Immediate.<anonymous> node_modules/happy-dom/src/window/BrowserWindow.ts:1439:5 This error originated in "__tests__/integration/mirador/tests/annotations.test.js" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "renders annotation in a companion window/sidebar panel". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
__tests__/src/lib/MiradorViewer.test.js > MiradorViewer > render > passes props through to the App component: __tests__/src/lib/MiradorViewer.test.js#L132
TestingLibraryElementError: Unable to find an element by: [data-testid="plugin"] Ignored nodes: comments, script, style <body> <div> <div data-testid="container" id="mirador" /> </div> <div> <div class="fullscreen" > <div /> </div> </div> </body> Ignored nodes: comments, script, style <body> <div> <div data-testid="container" id="mirador" /> </div> <div> <div class="fullscreen" > <div /> </div> </div> </body> ❯ waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:86:33 ❯ __tests__/src/lib/MiradorViewer.test.js:132:27
__tests__/integration/mirador/tests/minimalist.test.js > Minimalist configuration to Mirador > Loads a manifest and displays it without some of the default controls: __tests__/integration/mirador/tests/minimalist.test.js#L10
TestingLibraryElementError: Unable to find role="region" and name `/Window: Self-Portrait Dedicated to Paul Gauguin/i` Ignored nodes: comments, script, style <body> <div> <div data-testid="mirador" style="bottom: 0px; left: 0px; position: absolute; right: 0px; top: 0px;" > <div class="fullscreen" > <div class="css-rvh6fe-WorkspaceArea-root" > <main aria-label="Workspace" class="mirador-viewer css-sb9can-WorkspaceArea-viewer" lang="en" > <div style="height: 100%; width: 100%;" > <div class="mirador-workspace-viewport css-xu2fmc-Workspace-root" > <h1 class="MuiTypography-root MuiTypography-body1 css-vvl3q8-MuiTypography-root" style="border: 0px; height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; white-space: nowrap; width: 1px;" > Mirador viewer </h1> <section aria-label="Window: " class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 mirador-window css-170ci9v-MuiPaper-root-Window-root" id="window-d01e5791-4d34-4732-b539-3838a6bc673e" > <nav aria-label="Window navigation" class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation4 MuiAppBar-root MuiAppBar-colorDefault MuiAppBar-positionRelative css-3r04er-MuiPaper-root-MuiAppBar-root-WindowTopBar-root" > <div class="MuiToolbar-root MuiToolbar-dense mirador-window-top-bar css-kqh1n7-MuiToolbar-root-WindowTopBar-toolbar" > <h2 class="MuiTypography-root MuiTypography-h2 MuiTypography-noWrap css-cnazwj-MuiTypography-root" /> <button aria-haspopup="true" aria-label="Window views & thumbnail display" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge css-1tjecsd-MuiButtonBase-root-MuiIconButton-root-MiradorMenuButton-root" data-mui-internal-clone-element="true" tabindex="0" type="button" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1m9ymud-MuiSvgIcon-root" focusable="false" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" > <path d="M0,0H24V24H0Z" fill="none" /> <path d="M24.852,17.981,3,18V15.945l21.852-.019Z" transform="translate(-2 5)" /> <path d="M1,4V21H22.853V4.1ZM3,19V6h8V19Zm18,0H13V6h8Z" transform="translate(0 -2)" /> </svg> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </button> <button aria-label="Maximize window" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge mirador-window-maximize mirador-window-menu-btn css-1tjecsd-MuiButtonBase-root-MuiIconButton-root-MiradorMenuButton-root" data-mui-internal-clone-element="true" tabindex="0"
build (20.x)
Process completed with exit code 1.
build (18.x)
The job was canceled because "_20_x" failed.
__tests__/src/lib/MiradorViewer.test.js > MiradorViewer > render > passes props through to the App component: __tests__/src/lib/MiradorViewer.test.js#L132
TestingLibraryElementError: Unable to find an element by: [data-testid="plugin"] Ignored nodes: comments, script, style <body> <div> <div data-testid="container" id="mirador" /> </div> <div> <div class="fullscreen" > <div /> </div> </div> </body> Ignored nodes: comments, script, style <body> <div> <div data-testid="container" id="mirador" /> </div> <div> <div class="fullscreen" > <div /> </div> </div> </body> ❯ waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:86:33 ❯ __tests__/src/lib/MiradorViewer.test.js:132:27
__tests__/integration/mirador/tests/annotations.test.js > Annotations in Mirador > stores annotations in state by canvasId: __tests__/integration/mirador/tests/annotations.test.js#L26
TestingLibraryElementError: Unable to find a label with the text of: /annotations/i Ignored nodes: comments, script, style <body class="" > <div> <div data-testid="mirador" style="bottom: 0px; left: 0px; position: absolute; right: 0px; top: 0px;" > <div class="fullscreen" > <div class="css-rvh6fe-WorkspaceArea-root" > <nav aria-label="Workspace navigation" class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation4 MuiAppBar-root MuiAppBar-colorDefault MuiAppBar-positionAbsolute mirador-workspace-control-panel css-3f7qxr-MuiPaper-root-MuiAppBar-root-WorkspaceControlPanel-root" > <div class="MuiToolbar-root MuiToolbar-regular css-1lartyw-MuiToolbar-root-WorkspaceControlPanel-toolbar" > <button aria-label="Add resource" class="MuiButtonBase-root MuiFab-root MuiFab-circular MuiFab-sizeMedium MuiFab-primary MuiFab-root MuiFab-circular MuiFab-sizeMedium MuiFab-primary css-18prof-MuiButtonBase-root-MuiFab-root-WorkspaceAddButton-root" data-mui-internal-clone-element="true" id="addBtn" tabindex="0" type="button" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root" data-testid="AddSharpIcon" focusable="false" viewBox="0 0 24 24" > <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" /> </svg> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </button> <div class="css-j0aotr-WorkspaceControlPanel-buttonArea" > <button aria-haspopup="true" aria-label="Jump to window" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge css-1tjecsd-MuiButtonBase-root-MuiIconButton-root-MiradorMenuButton-root" data-mui-internal-clone-element="true" tabindex="0" type="button" > <span class="MuiBadge-root css-1yq562r-MuiBadge-root" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root" data-testid="BookmarksSharpIcon" focusable="false" viewBox="0 0 24 24" > <path d="m19 18 2 1V1H7v2h12zM17 5H3v18l7-3 7 3z" /> </svg> <span class="MuiBadge-badge MuiBadge-standard MuiBadge-anchorOriginTopRight MuiBadge-anchorOriginTopRightRectangular MuiBadge-overlapRectangular css-dlwkee-MuiBadge-badge" > 1 </span> </span> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </button> <button aria-haspopup="true" aria-label="Workspace settings" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge css-1tjecsd-MuiButtonBase-root-MuiIconButton-root-MiradorMenuButton-root" data-mui-internal-clone-element="true" id="menuBtn" tabindex="0" type="button" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root" data-testid="SettingsSharpIcon" focus
__tests__/integration/mirador/tests/annotations.test.js > Annotations in Mirador > renders annotation in a companion window/sidebar panel: __tests__/integration/mirador/tests/annotations.test.js#L40
TestingLibraryElementError: Unable to find a label with the text of: /annotations/i Ignored nodes: comments, script, style <body class="" > <div> <div data-testid="mirador" style="bottom: 0px; left: 0px; position: absolute; right: 0px; top: 0px;" > <div class="fullscreen" > <div class="css-rvh6fe-WorkspaceArea-root" > <nav aria-label="Workspace navigation" class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation4 MuiAppBar-root MuiAppBar-colorDefault MuiAppBar-positionAbsolute mirador-workspace-control-panel css-3f7qxr-MuiPaper-root-MuiAppBar-root-WorkspaceControlPanel-root" > <div class="MuiToolbar-root MuiToolbar-regular css-1lartyw-MuiToolbar-root-WorkspaceControlPanel-toolbar" > <button aria-label="Add resource" class="MuiButtonBase-root MuiFab-root MuiFab-circular MuiFab-sizeMedium MuiFab-primary MuiFab-root MuiFab-circular MuiFab-sizeMedium MuiFab-primary css-18prof-MuiButtonBase-root-MuiFab-root-WorkspaceAddButton-root" data-mui-internal-clone-element="true" id="addBtn" tabindex="0" type="button" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root" data-testid="AddSharpIcon" focusable="false" viewBox="0 0 24 24" > <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" /> </svg> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </button> <div class="css-j0aotr-WorkspaceControlPanel-buttonArea" > <button aria-haspopup="true" aria-label="Jump to window" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge css-1tjecsd-MuiButtonBase-root-MuiIconButton-root-MiradorMenuButton-root" data-mui-internal-clone-element="true" tabindex="0" type="button" > <span class="MuiBadge-root css-1yq562r-MuiBadge-root" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root" data-testid="BookmarksSharpIcon" focusable="false" viewBox="0 0 24 24" > <path d="m19 18 2 1V1H7v2h12zM17 5H3v18l7-3 7 3z" /> </svg> <span class="MuiBadge-badge MuiBadge-standard MuiBadge-anchorOriginTopRight MuiBadge-anchorOriginTopRightRectangular MuiBadge-overlapRectangular css-dlwkee-MuiBadge-badge" > 1 </span> </span> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </button> <button aria-haspopup="true" aria-label="Workspace settings" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge css-1tjecsd-MuiButtonBase-root-MuiIconButton-root-MiradorMenuButton-root" data-mui-internal-clone-element="true" id="menuBtn" tabindex="0" type="button" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root" data-testid="SettingsSharpIcon" focus
build (18.x)
The operation was canceled.
build (22.x)
The job was canceled because "_20_x" failed.
build (22.x)
The operation was canceled.