Hi, I just created an Ionic v4 project and when I write ‘ionic serve’ command to the folder of the project in cmd i get this error
ng run app:serve --host=localhost --port=8100
[ng] An unhandled exception occurred: Unknown browser query
basedir=$(dirname "$(echo "$0" | sed -e 's. Maybe you are using old Browserslist or made typo in query.
[ng] See “C:\Users\win10\AppData\Local\Temp\ng-LPbrdk\angular-errors.log” for further details.
[ERROR] ng has unexpectedly closed (exit code 127).
The Ionic CLI will exit. Please check any output above for error details.`
But Ionic1 projects are working normal. I uninstalled ionic and reinstalled, it did not change.
ionic -v 5.2.6
node -v v10.15.3
java version “1.8.0_221”