I did upgrade Angular version from 10 to 11 and then from 11 to 12 from Angular documentation on advanced app complexity everything works fine but when i tried to build project with Angular universal I'm experiencing error below :
./server.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: /Users/bobvv/kl-front/server.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. at /Users/bobvv/kl-front/node_modules/@ngtools/webpack/src/ivy/loader.js:59:26
and every ts file that is for angular universal is viewing * is part of the TypeScript compilation but it's unused. Add only entry points to the 'files' or 'include' properties in your tsconfig.