On application start I have this error:

How to use pdfmake is described in readme in Getting Started section and see how to use in javascript frameworks.
I've already done this, but I still have this error
You do not include pdfmake to your script.
Without some informations, and sample of your code, can not help. You use some js framework?
Yes, I'm using React.js. That's how I init pdfmake package
import pdfMake from "pdfmake/build/pdfmake";
import pdfFonts from "pdfmake/build/vfs_fonts";
pdfMake.vfs = pdfFonts.pdfMake.vfs;
@MarkSalabutin did you ever figure this out?
Your usage is from example in readme, and it works correctly. If not, problem will be in react application, try to ask on react support.
@MarkSalabutin
You using this import method. This is work for me.
import * as pdfMake from 'pdfmake/build/pdfmake';
import * as pdfFonts from 'pdfmake/build/vfs_fonts';
pdfMake.vfs = pdfFonts.pdfMake.vfs;
There was a problem in my bundler. I shouldn't compile dependencies.
@poomarimuruganD That worked for me. Thanks.
Most helpful comment
@MarkSalabutin
You using this import method. This is work for me.
import * as pdfMake from 'pdfmake/build/pdfmake';
import * as pdfFonts from 'pdfmake/build/vfs_fonts';
pdfMake.vfs = pdfFonts.pdfMake.vfs;