Closed smitbhalodiya closed 3 months ago
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
Hi @SamirMishra27, Everything worked out!, thank you very much!
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.