slick icon indicating copy to clipboard operation
slick copied to clipboard

Error on gulp

Open sankaran8 opened this issue 10 years ago • 3 comments

I get following error on gulp.

{ type: 'Parse', filename: '/bower_components/slick-carousel/slick/slick-theme.css', index: 686, line: 33, callLine: NaN, callExtract: undefined, column: 21, extract: [ ' padding: 0;', ' margin-top: -10px\9; /lte IE 8/', ' -webkit-transform: translate(0, -50%);' ], message: 'Unrecognised input in file bower_components/slick-carousel/slick/slick-theme.css line no. 33', stack: undefined, lineNumber: 33, fileName: 'bower_components/slick-carousel/slick/slick-theme.css', name: 'Error', showStack: false, showProperties: true, plugin: 'gulp-less', __safety: { toString: [Function] } }

Line 33 in slick-carousel/slick/slick-theme.css

margin-top: -10px\9; /lte IE 8/

sankaran8 avatar Dec 19 '15 11:12 sankaran8

No JSFiddle - closing

mcashley avatar Jan 14 '16 19:01 mcashley

Happens for me too. The less-compiler has problems parsing margin-top: -10px\9; /*lte IE 8*/.

thasmo avatar Jan 28 '16 16:01 thasmo

There's a PR to remove the style. It's there as a fallback for IE8.

The LESS versions of the styles use the LESS string escaping syntax, which should fix the exception.

leggomuhgreggo avatar Jan 28 '16 16:01 leggomuhgreggo