Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property '1' of undefined at UnicodeTrie.get #807

Open
SomeoneRandom42 opened this issue Apr 19, 2018 · 0 comments
Open

Comments

@SomeoneRandom42
Copy link

Currently using pdfkit in a lambda function to overlay images and text on top of another image. Getting this error very intermittently. Is anyone else seeing this at all and have any solutions?

From what I can tell we are using pdfkit in the expected way, I am guessing something in the guts of pdfkit is doing something odd with callbacks or expecting something to be sync that isn't.

Here is the full stack trace

TypeError: Cannot read property '1' of undefined
at UnicodeTrie.get (/var/task/node_modules/pdfkit/node_modules/linebreak/node_modules/unicode-trie/index.js:71:25)
at LineBreaker.nextCharClass (/var/task/node_modules/pdfkit/node_modules/linebreak/src/linebreaker.js:74:33)
at LineBreaker.nextBreak (/var/task/node_modules/pdfkit/node_modules/linebreak/src/linebreaker.js:90:39)
at LineWrapper.eachWord (/var/task/node_modules/pdfkit/js/line_wrapper.js:80:27)
at LineWrapper.wrap (/var/task/node_modules/pdfkit/js/line_wrapper.js:146:12)
at PDFDocument.module.exports._text (/var/task/node_modules/pdfkit/js/mixins/text.js:48:17)
at PDFDocument.module.exports.text (/var/task/node_modules/pdfkit/js/mixins/text.js:59:19)
at pdfBuilder.addText (/var/task/app/pdfBuilder.js:338:93)
at pdfBuilder.buildPDF (/var/task/app/pdfBuilder.js:290:18)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant