The problem is caused by the following filesystem permission bug on Windows:
- Magento 2.3 bug on Windows: «Command line user does not have read and write permissions on generated directory»
- «Can’t create directory generated/code/Magento/Framework/App/ResourceConnection/.» in Windows
You need to delete the generated
folder to solve the problem.