Saltar al contenido

ng serve no funciona después de la actualización de Angular 8

Si encuentras alguna parte que no entiendes puedes comentarlo y haremos todo lo posible de ayudarte tan rápido como podamos.

Solución:

Solución

Después de actualizar a Angular 8

puede ocurrir un problema

      ng update --all
    Using package manager: 'npm'
    Collecting installed dependencies...
    Found 58 dependencies.
                      Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=3.4 <3.5", would install "3.5.2")
                      Package "@angular-devkit/build-angular" has an incompatible peer dependency to "typescript" (requires ">=3.1 < 3.5", would install "3.5.2")
                      Package "angular2-datatable" has an incompatible peer dependency to "@angular/common" (requires "^2.0.0" (extended), would install "8.0.1").
                      Package "@angular/http" has an incompatible peer dependency to "@angular/core" (requires "7.2.15", would install "8.0.1")
                      Package "angular2-datatable" has an incompatible peer dependency to "@angular/core" (requires "^2.0.0" (extended), would install "8.0.1").
                      Package "angular2-datatable" has an incompatible peer dependency to "@angular/platform-browser" (requires "^2.0.0" (extended), would install "8.0.1").
                      Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=3.4 <3.5", would install "3.5.2").
                      Package "angular2-datatable" has an incompatible peer dependency to "rxjs" (requires "^5.0.0-beta.12", would install "6.5.2").
    Incompatible peer dependencies found. See above

Solución para estos errores

ng actualizar --todos --force

entonces error

   ERROR in The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 3.5.2 was found instead.

instalar npm [email protected]">=3.4.0 <3.5.0" --save-dev --save-exacta

        Just to be sure run the following steps:

        npm uninstall -g @angular/cli
        npm cache verify
        npm install -g @angular/[email protected]
        Then in your Local project package:

        rm -rf node_modules dist 
        npm install --save-dev @angular/[email protected]
        npm i 
        ng update @angular/cli 
        ng update @angular/core

solucionará el problema

Si guardas alguna desconfianza o capacidad de perfeccionar nuestro noticia puedes escribir una observación y con deseo lo ojearemos.

¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)



Utiliza Nuestro Buscador

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *