DEV Community

Lokesh Prajapati
Lokesh Prajapati

Posted on

Plss help me out guys

Hello, I had created a dynamic react app with ms sql in that I'm facing issue as after production build it's looks good but after refreshing or reloading the same page getting error as 'can't get /login' can suggest some solution Thank you!

Top comments (1)

Collapse
 
softwaresennin profile image
Mel♾️☁️ • Edited

Hi @7okesh getting an error like "can't get /login" after refreshing a page in ur React app, especially post-production build, usually relates to client-side routing. When you build them, they usually use client-side routing. However, the server isn't aware of these routes. So, when you refresh, the server looks for a route that doesn't exist on the server-side, leading to the error.

Hope I have clarified it a little for you. For more clarity pls check for Bloggers like yourself who have written on creating React App. They have surely faced this before.