π Fix error when reusing fonts or images #394
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
|