I have a repro project for this but I copy/pasted the contents of tsconfig from another current project to an old one and made sure package.json is updated, ran clean install and it runs on local server but on production build I get errors like:
../../Library/PackageCache/[email protected]/package~/engine-components/Renderer.ts(479,44): error TS2345: Argument of type 'this' is not assignable to parameter of type 'IRenderer'. Open C:\Unity_Projects\##Projname##\Projects\newProject/../../Library/PackageCache/[email protected]/package~/engine-components/Renderer.ts
Is there anything I missed?