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

260
Vistas
Error upgrading from angular 11.2 to 12.2 - styles.css - Error: (0 , _identifier.getUndoPath) is not a function

Like the title says, I'm getting an error building my angular app after using the ng cli to upgrade from angular 11.2 to 12.2:

styles.css - Error: (0 , _identifier.getUndoPath) is not a function

I don't have a styles.css file (using styles.scss), nor do I see anywhere that file is referenced. Any idea what the issue could be?

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

0

You might want to check if styles.css is being imported and used anywhere inside your code.

over 4 years ago · Santiago Trujillo Denunciar

0

When I upgraded my angular framework to 12, I struggled with many scss problems. The problem is that the @angular/cli package interprets the packages in the assets folder as external links. I have now downgraded my angular version to 11. If you can manage to interpret your assets directory as , the problem may be solved.

something like this in angular.json

"assets": [
              ...
              {
                "glob": "**/*.scss",
                "input": "src/assets/",
                "ignore": ["**/*.scss"],
                "output": "/assets/"
              },
              {
                "glob": "**/*.md",
                "input": "docs",
                "output": "/assets/docs"
              }
            ],

over 4 years ago · Santiago Trujillo Denunciar

0

@angular-devkit/build-angular@12.2.0 seems to be the issue. Downgrading it to 12.1.1 fixes the issue for me (while the Angular team fixes the real thing)

over 4 years ago · Santiago Trujillo Denunciar

0

for me downgrading the @angular-devkit/build-angular package didn't work, but I looked a little dipper, and I see that webpack is calling this function, so I upgraded the webpack package ("webpack": "^5.50.0"), and this solved the problem.

over 4 years ago · Santiago Trujillo Denunciar

0

Fixed for me by installing mini-css-extract-plugin in devDependencies.

See https://github.com/angular/angular-cli/issues/21628#issuecomment-909388037

over 4 years ago · Santiago Trujillo Denunciar

0

For me deleting package.lock & node_modules/* fixed the issue.

Source: https://github.com/angular/angular-cli/issues/21567 | https://github.com/angular/angular-cli/issues/21628

over 4 years ago · Santiago Trujillo Denunciar

0

my version is v12.2.7, and the solution is npm i webpack

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