- I was recently working on a vanilla JS project and doing a vanilla JS client router. I was developing it using the VSCode Live Server extension. When in a given route i.e.
/order
and refreshing the browser page I was getting theCannot GET /order
. - I am not sure I would do a good job explaining why this happens (this SO answer does it). But I know how to fix it!
- Head to the vscode extension settings and set
index.html
under theLive Server > Settings: File
. It will start working.
Fix Cannot GET using VSCode Live Server extension
