You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there is a bug with the pdfmake and vfs_fonts dependency. And it is that at the time of compiling in Vite to pass it to production, there is an error that detects that it does not export an object pdfMake. Since Vite copies it into ES modules, it does not detect it.
The problems with pdfmake and vfs_fonts, it is likely that the error is related to the fact that I am using libraries that are written as CommonJS modules, while Vite expects ES modules.
Vite has built-in support for CommonJS modules, but there may be problems with certain libraries that use CommonJS-specific features that are not compatible with ES modules.
This error means that Vite is trying to import vfs_fonts as an ES module, but vfs_fonts is a CommonJS module and does not have a default export.
Translated with DeepL.com (free version)
The text was updated successfully, but these errors were encountered:
there is a bug with the pdfmake and vfs_fonts dependency. And it is that at the time of compiling in Vite to pass it to production, there is an error that detects that it does not export an object pdfMake. Since Vite copies it into ES modules, it does not detect it.
The problems with
pdfmake
andvfs_fonts
, it is likely that the error is related to the fact that I am using libraries that are written as CommonJS modules, while Vite expects ES modules.Vite has built-in support for CommonJS modules, but there may be problems with certain libraries that use CommonJS-specific features that are not compatible with ES modules.
This error means that Vite is trying to import
vfs_fonts
as an ES module, butvfs_fonts
is a CommonJS module and does not have adefault
export.Translated with DeepL.com (free version)
The text was updated successfully, but these errors were encountered: