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

Error running on node 18

Open sergey-hippo opened this issue 1 year ago • 0 comments

When running this tool under Node 18, the following error is thrown:

Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer

I've found the explanation here: https://stackoverflow.com/a/77308483/2280444

Workaround: run under node 16 - tested, it works

Solution: upgrade source-map package to 0.7.4 - not tested

sergey-hippo avatar Feb 09 '24 01:02 sergey-hippo