react-router: Sourcemaps not loading in development (v6)

Version

v6.0.0-alpha.5

Test Case

https://codesandbox.io/s/react-router-34x2v

Steps to reproduce

Download the sandbox and run it locally or pull open the full-screen page.

Expected Behavior

I’d expect it to show up in my devtools like other dependencies:

image

Actual Behavior

Open dev tools and ⌘+P and look for react-router and notice it doesn’t show up at all:

image

I also noticed that the development build is fully minified. This makes it a lot harder to debug issues that I’m having integrating with the router.

I’d love it if:

  1. The source maps work
  2. The development version weren’t minified

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 8
  • Comments: 15 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks bot, but this is still an issue

Getting this message in Debug Console in VSCode

Could not read source map for webpack:///node_modules/react-router/esm/react-router.js?: Unexpected 503 response from webpack:///node_modules/react-router/esm/react-router.js.map: Unsupported protocol “webpack:”

Yeah, I think you’re talking about a separate issue. All I want is working sourcemaps 😃