Serve: Page not found error for browser refresh

Created on 6 Jul 2018  路  6Comments  路  Source: vercel/serve

I'm having a problem with refreshing the browser in specific URL (ex: http://localhost:5000/user) gives the page not found error. If I access that URL via hyperlink it works.
Note: its single page React app
Any help or advice appreciate

Most helpful comment

That's another issue (#507) in the last version.
Try installing version 10.1.1 until is fixed.

npm i -g [email protected]

All 6 comments

serve -s or serve --single to serve single page applications.

work perfectly , thanks

serve -s or serve --single does not work for me. Still get a 404 page not found error.
P.S. It is an Angular 6 app.
npm version: 6.4.1
Node version: 10.15.1

That's another issue (#507) in the last version.
Try installing version 10.1.1 until is fixed.

npm i -g [email protected]

@nicolasparada - That worked. Thanks a lot! 馃憤

Bug still present on serve version 10.1.2 on Windows 10 64 bit, Node v10.15.0.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nermin99 picture nermin99  路  3Comments

Simran-B picture Simran-B  路  4Comments

TamasHuang picture TamasHuang  路  7Comments

ajchambeaud picture ajchambeaud  路  4Comments

Kikobeats picture Kikobeats  路  3Comments