Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

271
Vistas
Angular update from 10 to 12 ssr issue

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.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I was trying to run both local and build version of my angular project with old commands from angular 10 which was causing this issue. For building angular 12 on localhost you should use ng run {{project-name}}:serve-ssr which is added to your package.json by default so you can use npm run dev:ssr and for build version you should use ng run {{project-name}}:prerender and then node dist/{{project-name}}/server/main.js which by default is added to your package.json so you can use npm run prerender and then npm run serve:ssr

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda