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

[Help] (cant reading 'pdfMake in Production') #222

Open
Denhope opened this issue Jun 28, 2024 · 0 comments
Open

[Help] (cant reading 'pdfMake in Production') #222

Denhope opened this issue Jun 28, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@Denhope
Copy link

Denhope commented Jun 28, 2024

Hi, in my aplication, after production build I have error cant reading 'pdfMake

TypeError: Cannot read properties of undefined (reading 'pdfMake')
at vfs_fonts-oZBYIEf5.js:1:27

But in develop all it work.

I use   import
 const pdfMake = (await import('pdfmake/build/pdfmake')).default;
 const pdfFonts = (await import('pdfmake/build/vfs_fonts')).default;

How I can fix this. Thanks.

@Denhope Denhope added the help wanted Extra attention is needed label Jun 28, 2024
@Denhope Denhope changed the title [Help] (cant reading 'pdfMake') [Help] (cant reading 'pdfMake in Production') Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant