How to build browser version in Ionic 4

I have just installed Ionic on a new machine. Using the starter template I found no issues about building for the browser platform.

You should try Ionic Cordova run browser

Basically what I did was

npm install ionic cordova -g

ionic start --angular

Gave the project a name (and selected the super template)

changed directory to the project directory

npm install

ionic cordova run browser

and all is working fine