404 on hot-update.json when using subroutes
See original GitHub issueHi there, I might be missing something really obvious here, but I’ve found that hot reload isn’t working ( I get
404 GET http://localhost:3004/orders/c344e97ed1fbc2923017.hot-update.json 404 (Not Found)
on the CreateOrder
component when I have the following routes configuration:
<Route path="/" component={App}>
<Route path="login" component={Login} />
<Route path="orders" component={OrderPanel} />
<Route path="orders/create" component={CreateOrder} />
<Route path="*" component={NotFoundPage} />
</Route>
But when I change the path from orders/create
to just create
, it doesn’t returns a 404.
It seems like the hot update middleware is trying to fetch the hot-update.json from the /orders
subroute?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
React slingshot - Webpack hot middleware returning 404 on ...
It seems like the hot update middleware is trying to fetch the hot-update.json from the /orders subroute? webpack · react-router · react- ...
Read more >gaearon/react-hot-loader - Gitter
Hiya. I initially meant to come here because I had problems with 404's on the hot-update.json files. However, now I can't even get...
Read more >Handle 404 pages for nested routes in react-router
Nested routes are common in react ecosystem, but the handling of not found pages is not great with them. Let's understand one of...
Read more >User Yannick Schuchmann - English Stack Exchange
React slingshot - Webpack hot middleware returning 404 on hot-update.json when using react router sub-routes · English Language & Usage.
Read more >Webpack 反应, 0 未找到捆绑js, 反应路由器webpack, Webpack 404 ...
[Webpack 4] React-router does not render any routes when I build with ... hot-update.json 404 (Not Found) · Issue #1385 · webpack/webpack ,如何访问 ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Nice catch! I’m trying to determine if this is a safe commit. Anyone see any reason this would cause a breaking change? It’s fine for me in testing. If no one sees any concerns I’ll commit the change.
Change committed. Closing. Thanks for reporting!