Questions tagged [pizzip]

4 questions
2
votes
1 answer

How can I use Axios to get an array of files to give to Pizzip to generate a .zip archive?

Here's the documentation for Pizzip for those unfamiliar: https://github.com/open-xml-templating/pizzip/tree/master/documentation Also, I'm using VueJS (2), ES6, TS I am trying to download individual files with Axios and then put them into a zip…
Monica
  • 1,585
  • 3
  • 23
  • 34
1
vote
0 answers

ERR_PACKAGE_PATH_NOT_EXPORTED : Package subpath './dist/pako.es5.js' is not defined by "exports"

I have an issue with the deployment of a node app to production. When I try to execute with Node a script I get the following error: internal/modules/cjs/loader.js:498 throw new ERR_PACKAGE_PATH_NOT_EXPORTED(basePath, mappingKey); ^ Error…
Javier
  • 11
  • 1
1
vote
1 answer

Uncaught Error: Corrupted zip: missing 589 bytes

I'm using pizzip.js and made a new instance of the pizzip then passed in the file result and then used docxtemplatr package my code: var zip = new PizZip(reader.result); var doc = new window.docxtemplater().loadZip(zip); …
Iftekhstudio
  • 17
  • 1
  • 4
0
votes
1 answer

Nodejs concurrent requests overridden variables

I have a method in nodejs used to generate a document. If I have two simultaneous requests, the content of one document is the same as the second one (the variable "contents" below). If for example the source.content retrieved by the first request…