danvk / source-map-explorer

Analyze and debug space usage through source maps
Apache License 2.0
3.81k stars 119 forks source link

Error when running on Node v18 due to native fetch #231

Closed duhdugg closed 1 year ago

duhdugg commented 1 year ago

Description Error when running source-map-explorer on Node v18 due to native fetch

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

Steps to reproduce

  1. Use Node v18
  2. Try running source-map-explorer on a previously working project

Environment

Additional context

Workaround: add NODE_OPTIONS='--no-experimental-fetch' environment variable when running source-map-explorer