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

Supported usage via node program instead of HTML #23

Closed
parsleyt opened this issue Jan 12, 2017 · 1 comment
Closed

Supported usage via node program instead of HTML #23

parsleyt opened this issue Jan 12, 2017 · 1 comment

Comments

@parsleyt
Copy link

Hello,

I am a nodeJS newbie and I apologize if this is a basic question.

I'm attempting to use PptxGenJS from a simple standalone nodeJS script. I've used NPM to install the pptxgenjs module locally. When I try to import the module into my script, the require keyword returns an empty object.

Here is my code where pptxgenjs is the empty object that is returned.

var pptxgenjs = require ('pptxgenjs');

Is this a supported use of PptxGenJS? I notice the examples are all called from an HTML page.

If so, can anyone help me understand how to import the module into my script?

Thanks,
Travis

@gitbrent gitbrent self-assigned this Jan 17, 2017
gitbrent pushed a commit that referenced this issue Jan 17, 2017
Fixed Issue #19 and Issue #23.
gitbrent pushed a commit that referenced this issue Jan 18, 2017
Resolves Issue #19 and Issue #23.
gitbrent pushed a commit that referenced this issue Jan 18, 2017
Fixes for Issue #19 and Issue #23.
@gitbrent
Copy link
Owner

Hi Travis,

Release v1.1.5 (npm 1.1.5-1) fixes the broken Node.js integration.

There's now a Node test file under ./examples that can be run using node nodejs-demo.js

Thank you for reporting this!

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

2 participants