We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I was trying out the library and it outputs this error on this task.
gulp.task('svgs', function() { gulp.src('svgs/*.svg') .pipe($.svgo()) .pipe($.svgSprites({ "mode": { "css": { "render": { "css": true } } } })) .pipe(gulp.dest('svgs')) });
And the error log is here:
/Users/chrisyeung/cmd/playground/gulp/node_modules/gulp-svg-sprites/node_modules/svg-sprite-data/node_modules/css-selector-parser/lib/css-selector-parser.js:172 l = str.length; ^ TypeError: Cannot read property 'length' of undefined at new exports.CssSelectorParser.ParseContext (/Users/chrisyeung/cmd/playground/gulp/node_modules/gulp-svg-sprites/node_modules/svg-sprite-data/node_modules/css-selector-parser/lib/css-selector-parser.js:172:14) at CssSelectorParser.exports.CssSelectorParser.CssSelectorParser.parse (/Users/chrisyeung/cmd/playground/gulp/node_modules/gulp-svg-sprites/node_modules/svg-sprite-data/node_modules/css-selector-parser/lib/css-selector-parser.js:474:17) at SVGObj.<anonymous> (/Users/chrisyeung/cmd/playground/gulp/node_modules/gulp-svg-sprites/node_modules/svg-sprite-data/lib/svg-obj.js:238:21) at Array.forEach (native) at SVGObj._replaceIDReferences (/Users/chrisyeung/cmd/playground/gulp/node_modules/gulp-svg-sprites/node_modules/svg-sprite-data/lib/svg-obj.js:235:9) at SVGObj.<anonymous> (/Users/chrisyeung/cmd/playground/gulp/node_modules/gulp-svg-sprites/node_modules/svg-sprite-data/lib/svg-obj.js:192:19) at Array.forEach (native) at SVGObj.namespaceIDs (/Users/chrisyeung/cmd/playground/gulp/node_modules/gulp-svg-sprites/node_modules/svg-sprite-data/lib/svg-obj.js:191:68) at /Users/chrisyeung/cmd/playground/gulp/node_modules/gulp-svg-sprites/node_modules/svg-sprite-data/lib/svg-sprite.js:395:21 at fn (/Users/chrisyeung/cmd/playground/gulp/node_modules/gulp-svg-sprites/node_modules/svg-sprite-data/node_modules/async/lib/async.js:582:34) at Object._onImmediate (/Users/chrisyeung/cmd/playground/gulp/node_modules/gulp-svg-sprites/node_modules/svg-sprite-data/node_modules/async/lib/async.js:498:34) at processImmediate [as _immediateCallback] (timers.js:330:15)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I was trying out the library and it outputs this error on this task.
And the error log is here:
The text was updated successfully, but these errors were encountered: