Typescript compile error

suddenly my project that uses typescript wont build for web-mobile. here is the error i get when i build. it was compiling alright the day before and i believe the issue is in the editor itself.

currently using 2.4.10 on mac m1 air and sonoma 14

the project compiled fine now when i changed the project path. but in the last path where the build fails, it still fails even on a clean checkout.

Does cocos cache the sources outside the project folder?

It is not possible to move code within a project to an external folder outside of the project.