I have the following error when trying to compile for production on version 2024.16
Fatal error: Uncaught DI\Definition\Exception\InvalidDefinition: Entry "events" cannot be compiled: the class is not instantiable Full definition: Object ( class = #NOT INSTANTIABLE# Doctrine\ORM\Events lazy = false ) in C:\xampp\htdocs\vendor\php-di\php-di\src\Definition\Exception\InvalidDefinition.php:19
Did you have a table named “events” and removed later? If you have changed database schema, make sure you generate all files again, especially the src\definitions.php.