We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using in a Laravel with Vite.
I am importing the library like this:
import pdfFonts from 'pdfmake/build/vfs_fonts'; pdfMake.vfs = pdfFonts.pdfMake.vfs;
This code works fine when running with vite watch
I am importing the library like this: import * as pdfFonts from 'pdfmake/build/vfs_fonts';
import * as pdfFonts from 'pdfmake/build/vfs_fonts';
It successfully ran the Yarn Build command without encountering any build errors, but see errors in the console.
Yarn Build
The text was updated successfully, but these errors were encountered:
Hi, have you found a solution to this? I'm also facing same exact issue in production deployment of site, using react and vite as build tool.
Edit: found potential solutions in #2654
Sorry, something went wrong.
Hi @SamirMishra27, Everything worked out!, thank you very much!
How?
No branches or pull requests
When using in a Laravel with Vite.
I am importing the library like this:
This code works fine when running with vite watch
I am importing the library like this:
import * as pdfFonts from 'pdfmake/build/vfs_fonts';
It successfully ran the
Yarn Build
command without encountering any build errors, but see errors in the console.The text was updated successfully, but these errors were encountered: