BUG: Cannot read property '0' of undefined
See original GitHub issueEnvironment
- clean-css version -
4.2.0
: - node.js version -
10.7.0
: - operating system: Mac High Sierra
Configuration options
Angular CLI 6.1.2, Angular 6.1.1
Error
The error is hidden because the error reporting code fails. looks to be an invalid animation issue in my 3rd party SCSS but I am not sure what it is. I will look deeper into my CSS but line break-up.js:566 needs fixing.
asset optimization node_modules/clean-css/lib/optimizer/level-2/properties/populate-components.js:30 throw e; ^
TypeError: Cannot read property ‘0’ of undefined at transition (./node_modules/clean-css/lib/optimizer/level-2/break-up.js:566:93) at Object.breakUp (./node_modules/clean-css/lib/optimizer/level-2/break-up.js:466:28) at populateComponents (./node_modules/clean-css/lib/optimizer/level-2/properties/populate-components.js:17:42) at optimizeProperties (./node_modules/clean-css/lib/optimizer/level-2/properties/optimize.js:19:3) at recursivelyOptimizeProperties (/Users/crash/git/traveliko/traveliko-spa/node_modules/clean-css/lib/optimizer/level-2/optimize.js:63:9) at recursivelyOptimizeProperties (./node_modules/clean-css/lib/optimizer/level-2/optimize.js:66:9)
Issue Analytics
- State:
- Created 5 years ago
- Comments:29
Top GitHub Comments
@bjornharvold I got it to work when I set “extractCss” to false
“extractCss”: false,
Hi, please upgrade and fix this issue. At “node_modules@angular-devkit\build-angular\node_modules\clean-css\lib\optimizer\level-2\break-up.js:566:93”
throw new InvalidPropertyError('Invalid animation value at ' + formatPosition(value[2][0]) + '. Ignoring.');
[0] is undefined so throwing exception is also throwing exception, LOL. And I am getting this error at bootstrap.css process.