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

Error when building the project using pdfMake in my React Vite project #2765

Open
YashBaldotaDS opened this issue Aug 11, 2024 · 0 comments
Open

Comments

@YashBaldotaDS
Copy link

import pdfMake from "pdfmake/build/pdfmake";
import pdfFonts from "pdfmake/build/vfs_fonts"; // Use wildcard import to get all exported members

pdfMake.vfs = pdfFonts.pdfMake.vfs;

Here are the imports I am using. I am getting the following error during build
"default" is not exported by "node_modules/pdfmake/build/vfs_fonts.js", imported by ".....".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants