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

PPTXCompose is not a constructor #17

Open
ApurvaDani opened this issue Feb 18, 2021 · 3 comments
Open

PPTXCompose is not a constructor #17

ApurvaDani opened this issue Feb 18, 2021 · 3 comments

Comments

@ApurvaDani
Copy link

ApurvaDani commented Feb 18, 2021

Code to reproduce error:
import PPTXCompose from "pptx-compose";
const composer = new PPTXCompose();

Error:
const composer = new PPTXCompose();
^
TypeError: PPTXCompose is not a constructor

System Configuration:
OS: Windows 10
Node: v14.15.1

@shobhitsharma

@joshuamcclure
Copy link

I ran into this as well. I solved it by using require() rather than import.

const PPTXCompose = require('pptx-compose').default
const composer = new PPTXCompose();

@shobhitsharma
Copy link
Owner

Thanks for report, I will fix today and bump the version.

@Nowi5
Copy link

Nowi5 commented Mar 24, 2023

Still same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants