Problem with Renderer to Renderer2

Hello.
I have to run a project 4 years old, I installed the libraries and etc and now I’m getting that error about Renderer. I tried to change it static but nothing happend… Also the error is on many files with the same import of Renderer
Any ideas?