#197·jszip

"TypeError: Cannot read property 'uint8array' of undefined at Object.JSZip.utils.transformTo" when running with io.js

Author: MarcoZeheCreated Jan 14, 2015Updated Sep 8, 2026
Labelsbug

I was trying out io.js 1.0.1 this morning, and using the jpm package, wanted to create an XPI file (zip file with different extension that contains a Firefox add-on). I received this error:

JPM info Starting jpm xpi on Tenon Check jszip.js:1291 var result = transform[inputType]outputType; ^ TypeError: Cannot read property 'uint8array' of undefined at Object.JSZip.utils.transformTo (jszip.js:1291:40) at Object.Uint8ArrayWriter.append (jszip.js:558:33) at Object.JSZip.generate (jszip.js:774:20) at C:\Users\Marco\AppData\Roaming\npm\node_modules\jpm\node_modules\zip-dir
index.js:39:24 at C:\Users\Marco\AppData\Roaming\npm\node_modules\jpm\node_modules\zip-dir
index.js:54:13 at C:\Users\Marco\AppData\Roaming\npm\node_modules\jpm\node_modules\zip-dir
index.js:81:11 at fs.js:313:14 at FSReqWrap.oncomplete (fs.js:76:15)

I also filed a related issue with jpm.