Brandon

Results 6 comments of Brandon

I fixed this issue by providing the correct type when instantiating the `Map` in the provider function. ```ts const map = new Map(JSON.parse(localStorage.getItem(KEY) || '[]')) ```

After further investigation, it's failing on more than just line breaks. I commented out most of the code. Only creating the doc and adding a cell, then calling `doc.asBuffer` ```javascript...

No it does not, and in fact, if I substitute `result.title` for `'2001-2003 - New Hampshire-New Hampshire Troopers Association-CBA'` it still fails. Did some testing with lorem ipsum. See below...

That's correct, the `switch` on line 99... ```javascript // if not handled already, use the pair table let shouldBreak = false switch (pairTable[this.curClass][this.nextClass]) { ``` Package is `@rkusa/linebreak` version 1.0.0

Yep, getting the same error running just that snippet. Referencing the line 99 in linebreak.js. > TypeError: Cannot read properties of undefined (reading '39') When I can find the time...

Works in stackblitz: https://js-vppx4v.stackblitz.io `getPdfBuffer` fails on my machine and it's doing the same thing. Could this have anything to do with it... I'm having another issue with module resolution...