crx-to-xpi icon indicating copy to clipboard operation
crx-to-xpi copied to clipboard

Uncaught (in promise) Error: Unexpected crx format version number

Open bdavisonhelo opened this issue 5 years ago • 6 comments
trafficstars

$ crx-to-xpi /Users/myusername/Downloads/extension_1_4_137_0.crx Error: Failed to unpack CRX file Uncaught (in promise) Error: Unexpected crx format version number. at crxToZip (/usr/local/lib/node_modules/crx-to-xpi/node_modules/unzip-crx/dist/index.js:37:15) at /usr/local/lib/node_modules/crx-to-xpi/node_modules/unzip-crx/dist/index.js:57:32 at callHanler (/usr/local/lib/node_modules/crx-to-xpi/node_modules/yaku/lib/yaku.js:719:16) at tryCatcher (/usr/local/lib/node_modules/crx-to-xpi/node_modules/yaku/lib/yaku.js:436:32) at /usr/local/lib/node_modules/crx-to-xpi/node_modules/yaku/lib/yaku.js:575:38 at flush (/usr/local/lib/node_modules/crx-to-xpi/node_modules/yaku/lib/yaku.js:478:17) at processTicksAndRejections (internal/process/task_queues.js:75:11)

Any ideas?

bdavisonhelo avatar Sep 20 '20 01:09 bdavisonhelo

Same here...

RikisuT avatar Apr 06 '21 10:04 RikisuT

Same problem still

ghost avatar Apr 25 '22 14:04 ghost

Same...

skrlst avatar Jun 30 '22 06:06 skrlst

Same here

DH-LStudios avatar Aug 13 '22 03:08 DH-LStudios

same xD

n0-n4-m3 avatar Dec 31 '22 13:12 n0-n4-m3

Looks like this is due to crx3 not being supported in the unzip-crx project upstream.

Someone has forked that project and added crx3 support. See: https://github.com/peerigon/unzip-crx/issues/12

Changing the unzip-crx usages in package.json and src/crx-to-xpi.js to unzip-crx-3 should be enough to fix this.

kevinmost avatar Mar 08 '23 21:03 kevinmost