Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
duhdugg opened this issue Sep 23, 2022 · 0 comments · Fixed by #232
Closed

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

duhdugg opened this issue Sep 23, 2022 · 0 comments · Fixed by #232

Comments

@duhdugg
Copy link
Contributor

duhdugg commented Sep 23, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant