I am busy setting up a new site and started with staging site. After finishing the staging site i copied site to production and edited the .env with production url. Then i run composer install on production and site is running fine. Strange thing is that when i do it staging site is down with error "Call to a member function dated() on null". Then when i run on staging site composer update staging is running fine but production is going down with same error "Call to a member function dated() on null". I tried all clear cache and stache but the same for all.
I hope anybody knows what to do?