Skip to content

πŸ› Fix error when reusing fonts or images #394

πŸ› Fix error when reusing fonts or images

πŸ› Fix error when reusing fonts or images #394

Triggered via push January 19, 2025 13:13
Status Failure
Total duration 33s
Artifacts

test-build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
src/api/PdfMaker.test.ts > makePdf > creates consistent results across runs: src/font-store.ts#L38
Error: Could not load font for 'undefined', style=normal, weight=normal ❯ FontStore.selectFont src/font-store.ts:38:13 ❯ src/text.ts:45:36 ❯ Module.extractTextSegments src/text.ts:32:15 ❯ layoutText src/layout/layout-text.ts:37:26 ❯ Module.layoutTextContent src/layout/layout-text.ts:17:22 ❯ layoutBlockContent src/layout/layout.ts:162:18 ❯ Module.layoutBlock src/layout/layout.ts:144:24 ❯ Module.layoutRowsContent src/layout/layout-rows.ts:36:40 ❯ layoutBlockContent src/layout/layout.ts:171:18 Caused by: Caused by: Error: No fonts defined ❯ selectFont src/font-store.ts:61:11 ❯ FontStore._loadFont src/font-store.ts:43:26 ❯ FontStore.selectFont src/font-store.ts:34:56 ❯ src/text.ts:45:36 ❯ Module.extractTextSegments src/text.ts:32:15 ❯ layoutText src/layout/layout-text.ts:37:26 ❯ Module.layoutTextContent src/layout/layout-text.ts:17:22 ❯ layoutBlockContent src/layout/layout.ts:162:18 ❯ Module.layoutBlock src/layout/layout.ts:144:24
build
Process completed with exit code 1.
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636