When I run the server using php bin/console server:run I get the following error. There are no commands defined in the \"server\" namespace.
php bin/console server:run
There are no commands defined in the \"server\" namespace.
As @Barh says, you must have APP_ENV=dev in your .env file.
APP_ENV=dev
.env
Otherwise Symfony 4 will not be runnable in dev mode.