Cannot read property 'layout' of null
See original GitHub issueReact-pdf version: 1.0.0-alpha.14
Description: After upgrading, I now see the following error when trying to render any document. I’m not setting any custom fonts
Uncaught (in promise) TypeError: Cannot read property 'layout' of null
at GlyphGenerator.js:63
at Array.map (<anonymous>)
at GlyphGenerator.generateGlyphs (GlyphGenerator.js:61)
at LayoutEngine$$1.layoutParagraph (LayoutEngine.js:119)
at LayoutEngine$$1.layoutColumn (LayoutEngine.js:94)
at LayoutEngine$$1.layout (LayoutEngine.js:80)
at TextEngine.layout (react-pdf.browser.es.js:3662)
at Text.measureText (react-pdf.browser.es.js:3872)
at External.data (entry-common.js:221)
at Array.eval (eval at buildJSCallerFunction (nbind.js:1449), <anonymous>:1:86)
at Array.ASM_CONSTS (nbind.js:557)
at _emscripten_asm_const_iiididi (nbind.js:565)
...
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (14 by maintainers)
Top Results From Across the Web
Cannot read properly 'data ' of null (DASH) - Stack Overflow
Sometimes Dash can struggle if the prop being updated by a callback hasn't been initialized. In this case, the figure prop of the...
Read more >Dash Upload data Update graph with callback - Cannot read ...
I'm new to Dash and trying to create a dashboard with upload data function and graph update with callbacks. However I got this...
Read more >how to fix this error Cannot read property of null (reading 'style')
Hi Andrew,. he's just saying that boxElement is null. That is always (or at least often) a possibility, so you should check for...
Read more >Image not displaying and giving error "Cannot read property ...
Within the standard Community Designer the image within the Layout is not being displayed and shows an error. When you return to the...
Read more >Dashboard fails to load with error "Uncaught TypeError
... Cannot read property 'left' of null" appears in the browser console ... and 3 functionality buttons (Add Gadget, Edit Layout, Tools) are...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If it can help someone, here is a small code to make a safe Text component (really improvable):
Fixed in new
1.0.0-alpha.19
version