Call to private method CorsMiddleware::logger() from scope CompiledContainer

Fatal error : Uncaught Error: Call to private method Tuupola\Middleware\CorsMiddleware::logger() from scope CompiledContainer in D:\tm25.5.0\log\cache\CompiledContainer.php:1188 Stack trace: #0 D:\tm25.5.0\vendor\php-di\php-di\src\CompiledContainer.php(55): CompiledContainer->get101() #1 D:\tm25.5.0\log\cache\CompiledContainer.php(1194): DI\CompiledContainer->get() #2 D:\tm25.5.0\vendor\php-di\php-di\src\CompiledContainer.php(55): CompiledContainer->get103() #3 D:\tm25.5.0\index.php(94): DI\CompiledContainer->get() #4 {main} thrown in D:\tm25.5.0\log\cache\CompiledContainer.php on line 1188

You may delete your container cache and let the script updates, read Compile container for production.

I deleted all my project files Folder and update template and still the same problem.

I didn’t change anything with my project and I still get the same problem .

I try to Generate another project on testing environment and another device and still the same problem.

Help me please

You may update the template to the latest version, click on Tools → Update Template, after that, re-generate ALL the script files, and try again.