source-map-unpack
source-map-unpack copied to clipboard
Broken in Node.js v18
Since this package is using source-map 0.7.3, it is suffering from https://github.com/mozilla/source-map/issues/349.
$ unpack panel-js panel.js.map
/opt/homebrew/lib/node_modules/source-map-unpack/node_modules/source-map/lib/read-wasm.js:8
throw new Error("You must provide the URL of lib/mappings.wasm by calling " +
^
Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer
at readWasm (/opt/homebrew/lib/node_modules/source-map-unpack/node_modules/source-map/lib/read-wasm.js:8:13)
at wasm (/opt/homebrew/lib/node_modules/source-map-unpack/node_modules/source-map/lib/wasm.js:25:16)
at /opt/homebrew/lib/node_modules/source-map-unpack/node_modules/source-map/lib/source-map-consumer.js:264:14
Node.js v18.16.1
Installing Node.js v16.20.1 makes it work.
If source-map is upgraded to 0.7.4 then this problem will be fixed.
Same issue, please update.
This should be solved now