Skip to content

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

@duhdugg

Description

@duhdugg

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

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions