Calendar error after updating to Nextcloud 18.0.0 RC2

Im getin this after updating to Nextkloud 18.0.0 RC 2

RuntimeException: App class OCA\Calendar\AppInfo\Application is not setup via query() but directly

0. /apps/calendar/lib/AppInfo/Application.php - line 38:OCP\AppFramework\App->__construct("calendar", [])
1. /apps/calendar/appinfo/app.php - line 25:OCA\Calendar\AppInfo\Application->__construct()
2. /lib/private/legacy/app.php - line 265:require_once("/home/users ... p")
3. /lib/private/legacy/app.php - line 155:OC_App::requireAppFile("calendar")
4. /lib/private/legacy/app.php - line 128:OC_App::loadApp("calendar")
5. /lib/base.php - line 993:OC_App::loadApps()
6. /index.php - line 38:OC::handleRequest()

I had the same problem.
You need to disable the debug mode in the config.php