Skip to content

pptx.stream(): Uncaught TypeError: Cannot read property 'compression' of undefined #932

@arbourd

Description

@arbourd

With 3.5.0, this sample code no longer works. It looks like the examples haven't been updated if the options with compression key are now required for stream() like they look to be for writeFile():

pptx.stream()
  .then((data) => {
    console.log(data);
  });

In a Fiddle (open the console/inspector):
https://jsfiddle.net/hztm8p6k/1/

Solution is to provide compression option:

pptx.stream({compression: false})
  .then((data) => {
    console.log(data);
  });

Is this supposed to be required?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions