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

TypeError: object (callback();) is not a function /officegen/lib/genpptx.js:1561:6 #65

Closed
JohnCLo opened this issue Jun 24, 2015 · 2 comments

Comments

@JohnCLo
Copy link

JohnCLo commented Jun 24, 2015

genpptx.js has a function callback(); that is not declared in genpptx.js

error occurs after executing " node make_pptx.js"

cheers

@pietersv
Copy link
Contributor

Sorry about that. The issue is that the second argument to slide.addChart is dropped.

slide.addChart(chartInfo, null, callback, callback); should now be
slide.addChart(chartInfo, callback, callback);

I had updated the README and the test/ files but missed the example. Submitting a PR that fixes this, and separates examples/make_pptx.js into two files, one that generates charts and one that doesn't.

@JohnCLo
Copy link
Author

JohnCLo commented Jun 24, 2015

Ah ok, no worries. Thanks for your help!

@JohnCLo JohnCLo closed this as completed Jun 24, 2015
Ziv-Barber added a commit that referenced this issue Jun 28, 2015
Update examples/make_pptx per #65
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

2 participants