I've encountered an issue while developing in a Quasar-Vite-Vue3 environment.
Initially, I set up the import like this:
import * as pdfMake from 'pdfmake/build/pdfmake';
import * as pdfFonts from 'pdfmake/build/vfs_fonts';
(<any>pdfMake).vfs = pdfFonts.pdfMake.vfs;
// I also tried 'pdfMake as any'
Everything works fine with pdfMake at the development stage. But I received error at quasar build:
Error when using sourcemap for reporting an error: Can't resolve original location of error.
'pdfMake' is not exported by 'node modules/pdfmake/build/vfs fontsjs'
Error when using sourcemap for reporting an error: Can't resolve original location of error.
Illegal reassignment to import 'pdfMake'
Hello,
I've encountered an issue while developing in a Quasar-Vite-Vue3 environment. Initially, I set up the import like this:
Everything works fine with pdfMake at the development stage. But I received error at
quasar build
: