-
Notifications
You must be signed in to change notification settings - Fork 653
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
Compatibility Issue with pptxgenjs and Vite #1325
Comments
We are having the same issue, we are getting the following error in Angular 18 project. it looks like
|
We are having the same issue,Has it been resolved? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to use pptxgenjs (version [3.12.0]) within a Quasar project that utilizes Vite for building. However, I'm encountering an error during the build process due to pptxgenjs's reliance on Node.js-style require statements (specifically for the https module).
Expected Behavior:
The Quasar/Vite build process should successfully bundle the project without errors.
Actual Behavior:
The build fails with an error message similar to:
Error: The plugin "vite:dep-pre-bundle" was triggered by this import
node_modules/pptxgenjs/dist/pptxgen.es.js:4883:90:
4883 │ ... require !== 'undefined' && typeof window === 'undefined' ? require('https') : null; // NodeJS
Error: Build failed with 1 error:
node_modules/vite/dist/node/chunks/dep-0a035c79.js:40970:10: ERROR: [plugin: vite:dep-pre-bundle] Failed to resolve entry for package "https". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "https". The package may have incorrect main/module/exports specified in its package.json.
Additional Information:
@quasar/app-vite: 1.3.0
vue: 3.0.0
quasar: 2.6.0
Request:
Thank you for your time and assistance.
The text was updated successfully, but these errors were encountered: