source-map-unpack icon indicating copy to clipboard operation
source-map-unpack copied to clipboard

Broken in Node.js v18

Open stefansundin opened this issue 1 year ago • 1 comments

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.

stefansundin avatar Jul 11 '23 16:07 stefansundin

Same issue, please update.

alpisa avatar Nov 29 '23 15:11 alpisa

This should be solved now

pavloko avatar Jul 29 '24 11:07 pavloko