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
- Use Node v18
- Try running source-map-explorer on a previously working project
Environment
- Node:
v18+
- source-map-explorer Version:
2.5.2
Additional context
Workaround: add NODE_OPTIONS='--no-experimental-fetch' environment variable when running source-map-explorer