You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I'm using pdfmake in a SvelteKit (1.20) project in TypeScript and simply doing the imports via the method presented in the documentation gives me an error.
I'm doing this :
import * as pdfMake from "pdfmake/build/pdfmake";
import * as pdfFonts from 'pdfmake/build/vfs_fonts';
(<any>pdfMake).vfs = pdfFonts.pdfMake.vfs;
And I get the following error :
TypeError: Cannot redefine property: vfs
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
Hello. I'm using pdfmake in a SvelteKit (1.20) project in TypeScript and simply doing the imports via the method presented in the documentation gives me an error.
I'm doing this :
And I get the following error :
What am I doing wrong?
The text was updated successfully, but these errors were encountered: