React-TypeScript-Webpack-Starter icon indicating copy to clipboard operation
React-TypeScript-Webpack-Starter copied to clipboard

Issue Related To Production

Open KhangNT1105 opened this issue 3 years ago • 2 comments

Hi sir, I have stuck with webpack production, in the local I can use historyApiFallback for refresh page route /login, but in production dont have historyApiFallback so when I refresh route /login, It returns 404 not found. Please help me in this issue, thank you so much

KhangNT1105 avatar Jul 10 '21 15:07 KhangNT1105

Try including react-router-dom as "dependencies" instead of "dev-dependencies"

HeyProtagonist avatar Jul 11 '21 01:07 HeyProtagonist

@KhangNT1105 Tried the above tip?

HeyProtagonist avatar Jun 20 '22 04:06 HeyProtagonist