Error reading undefined property

1

When I try to do

ng build --prod

Displays the following error:

  

92% chunk asset optimizationC: \ Users \ IvanTadeo \ Documents \ petstar \ front-end \ node_modules \ clean-css \ lib \ reader \ input-source-map-tracker.js: 37 if (originalPosition.line == = null & & line > 1 & selectorFallbacks > 0) {                          ^

     

TypeError: Can not read property 'line' of undefined

Why does that error come out? How can I put angular in production?

    
asked by Alejo 11.04.2018 в 02:00
source

1 answer

1

You have to do the following:

npm install [email protected]
npm uninstall clean-css
npm ls clean-css

and recompile.

    
answered by 11.04.2018 в 17:16