question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

404 on hot-update.json when using subroutes

See original GitHub issue

Hi 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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
coryhousecommented, Mar 20, 2016

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.

0reactions
coryhousecommented, Mar 21, 2016

Change committed. Closing. Thanks for reporting!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found