Jspdf-autotable: Potential Error With Users On < Typescript 3.7

Created on 12 Feb 2020  路  2Comments  路  Source: simonbengtsson/jsPDF-AutoTable

There is currently an issue when using 3.2.12 with a version less than typescript 3.7.
I am unable to upgrade to typescript 3.7 due to being stuck on Angular 8 for the time being.
The issue was builds failing due to the following error:

node_modules/jspdf-autotable/dist/index.d.ts:60:6 - error TS1086: An accessor cannot be declared in an ambient context.
60 get pageCount(): number;

Reverting to 3.2.11 fixed the issue for me.

bug

Most helpful comment

Weird! Released 3.2.13 now without the getter in the error message. Let me know if it works for you.

Didn't expect such a quick fix! So far so good. Looks like it's fixed.

All 2 comments

Weird! Released 3.2.13 now without the getter in the error message. Let me know if it works for you.

Weird! Released 3.2.13 now without the getter in the error message. Let me know if it works for you.

Didn't expect such a quick fix! So far so good. Looks like it's fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bsparacino picture bsparacino  路  3Comments

simonbengtsson picture simonbengtsson  路  5Comments

JoakFlores picture JoakFlores  路  3Comments

ayozebarrera picture ayozebarrera  路  3Comments

sciefylab picture sciefylab  路  6Comments