Ionic serve or ng serve gives me a "Cannot get /"

Hi, I just started a new project with ionic start command and it is ng-modules based blank project.

When I try ionic serve I get a page with cannot get / message
No error on console except for 404, no error on terminal

I worked on it and knew what this was 6 years ago, but I have forgotten Angular now. If I run ionic build and then run http-server inside www folder, it works fine

2 Likes

I also have this error creating a blank ng modules project. The project works fine with a http-server in www but trying to serve using the ionic CLI gives a 404 cannot GET /

1 Like