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

Fail building in a quasar-vite project #2624

Closed
han-ysys opened this issue Sep 18, 2023 · 4 comments
Closed

Fail building in a quasar-vite project #2624

han-ysys opened this issue Sep 18, 2023 · 4 comments

Comments

@han-ysys
Copy link

Hello,

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'
@vietmoda
Copy link

vietmoda commented Dec 8, 2023

me too @@

@ar2rsoft
Copy link

ar2rsoft commented Jan 9, 2024

same error

@peulessa
Copy link

I have the same problem...

@liborm85
Copy link
Collaborator

liborm85 commented Nov 2, 2024

Resolved see #2654 (comment).

@liborm85 liborm85 closed this as completed Nov 2, 2024
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

5 participants