Removed autoloading 'app/models' gives error on composer install

Error message: Could not scan for classes inside "app/models""which does not appear to be a file nor a folder.