<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/react-router-not-working-on-vercel--1fj3pwmpe" -->

---
title: React Router Not Working on Vercel? | daily.dev
description: This post provides a solution for fixing sub-route errors with React Router on Vercel.
canonical: https://daily.dev/posts/react-router-not-working-on-vercel--1fj3pwmpe
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: React Router Not Working on Vercel? | daily.dev
og:description: This post provides a solution for fixing sub-route errors with React Router on Vercel.
og:url: https://daily.dev/posts/react-router-not-working-on-vercel--1fj3pwmpe
og:image: https://api.daily.dev/og/posts/1Fj3PwMPe.png
og:image:alt: React Router Not Working on Vercel?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# React Router Not Working on Vercel?

**[Community Picks](https://daily.dev/sources/community)** · [@arindam_1729](https://daily.dev/arindam_1729) · 2 min read · 32 upvotes · 4 comments

## Summary

This post provides a solution for fixing sub-route errors with React Router on Vercel.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://arindam1729.hashnode.dev/react-router-not-working-on-vercel>

## Community discussion

Top comments from developers on daily.dev.

**@arindam\_1729** · 2 upvotes

> Thanks a lot for sharing!

**@shivamkush27** · 1 upvotes

> Saving it for future reference. Thanks for sharing!

**@dilhanziriwardhana** · 0 upvotes

> vercel error 404 after page refresh?

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#vercel](https://daily.dev/tags/vercel), [#react-router](https://daily.dev/tags/react-router)

[View this post on daily.dev](https://daily.dev/posts/react-router-not-working-on-vercel--1fj3pwmpe)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"React Router Not Working on Vercel?","url":"https://daily.dev/posts/react-router-not-working-on-vercel--1fj3pwmpe","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/react-router-not-working-on-vercel--1fj3pwmpe"},"datePublished":"2024-03-24T06:33:57.547Z","dateModified":"2024-05-09T08:29:02.242Z","description":"This post provides a solution for fixing sub-route errors with React Router on Vercel.","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e3ac550749f9b65e8d68bcd7886e9f06?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e3ac550749f9b65e8d68bcd7886e9f06?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Community Picks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Arindam Majumder","url":"https://daily.dev/arindam_1729","image":"https://media.daily.dev/image/upload/s--uXgWt388--/f_auto/v1775767784/avatars/avatar_s9Bz9Gc1siStWXUL3xR2C?_a=BAMAMiWQ0","description":"DevRel","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":4660}},"commentCount":4,"discussionUrl":"https://daily.dev/posts/react-router-not-working-on-vercel--1fj3pwmpe","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":32},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"webdev,vercel,react-router","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Community Picks","item":"https://daily.dev/sources/community"},{"@type":"ListItem","position":3,"name":"React Router Not Working on Vercel?"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/react-router-not-working-on-vercel--1fj3pwmpe","comment":[{"@type":"Comment","text":"Thanks a lot for sharing!","datePublished":"2024-03-24T06:44:05.310Z","url":"https://daily.dev/posts/1Fj3PwMPe#c-pYkhfR3KV","author":{"@type":"Person","name":"Arindam Majumder","url":"https://daily.dev/arindam_1729","image":"https://media.daily.dev/image/upload/s--uXgWt388--/f_auto/v1775767784/avatars/avatar_s9Bz9Gc1siStWXUL3xR2C?_a=BAMAMiWQ0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"Saving it for future reference. Thanks for sharing!","datePublished":"2024-03-29T08:01:02.242Z","url":"https://daily.dev/posts/1Fj3PwMPe#c-ututm2b1Y","author":{"@type":"Person","name":"Shivam","url":"https://daily.dev/shivamkush27","image":"https://media.daily.dev/image/upload/s--8eMmxWJC--/f_auto/v1720605463/avatars/avatar_KAh7Uu3jWpkOAHVFDftdO"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"vercel error 404 after page refresh?","datePublished":"2024-03-26T11:44:10.394Z","url":"https://daily.dev/posts/1Fj3PwMPe#c-F2fkP15Wk","author":{"@type":"Person","name":"Dilhan Ziriwardhana","url":"https://daily.dev/dilhanziriwardhana","image":"https://media.daily.dev/image/upload/s--kOYZr_C8--/f_auto/v1715874042/avatars/avatar_4EX1iI2mbZY2AZutl3BOD"}}]}
```

