#Trying to build older project with updated Package.json and tsconfig has Renderer.ts errors

1 messages · Page 1 of 1 (latest)

onyx tendon
#

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?

#

I also ran update Vite Config, the production build does succeed but the errors are ominous, I can privately send the project

crimson violet
#

Not entirely clear what you mean here / what you think the issue is.
Can you generate a fresh project and check if everything is working there? If yes, there's probably some cache that needs to be cleared / clean installed in your version of the files.

onyx tendon
#

Was just checking if I missed anything, will try deleting Library and reopening