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:

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

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:
- The source maps work
- 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
- fix(remix-server-runtime): make `DataFunctionArgs` a type alias (#7362) — committed to remix-run/react-router by MichaelDeBoey 10 months ago
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 😃