Skip to content
New issue

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

Cannot read property 'shapes' of undefined #24

Closed
smcelhinney opened this issue Jun 5, 2015 · 2 comments
Closed

Cannot read property 'shapes' of undefined #24

smcelhinney opened this issue Jun 5, 2015 · 2 comments
Assignees
Labels

Comments

@smcelhinney
Copy link

Getting the following error with gulp-svg-sprite when trying to build (1.2.1):

[ERROR] <obscured>/workspace/node_modules/gulp-svg-sprite/index.js:63
[ERROR]         if (data.css.shapes.length > 0) {
[ERROR]                     ^
[ERROR] TypeError: Cannot read property 'shapes' of undefined
[ERROR]     at Array.<anonymous> (<obscured>/workspace/node_modules/gulp-svg-sprite/index.js:63:17)
[ERROR]     at <obscured>/workspace/node_modules/gulp-svg-sprite/node_modules/svg-sprite/lib/svg-sprite.js:256:11
[ERROR]     at <obscured>/workspace/node_modules/gulp-svg-sprite/node_modules/svg-sprite/lib/svg-sprite.js:298:3
[ERROR]     at <obscured>/workspace/node_modules/gulp-svg-sprite/node_modules/svg-sprite/node_modules/async/lib/async.js:678:13
[ERROR]     at <obscured>/workspace/node_modules/gulp-svg-sprite/node_modules/svg-sprite/node_modules/async/lib/async.js:49:16
[ERROR]     at replenish (<obscured>/workspace/node_modules/gulp-svg-sprite/node_modules/svg-sprite/node_modules/async/lib/async.js:304:29)
[ERROR]     at <obscured>/workspace/node_modules/gulp-svg-sprite/node_modules/svg-sprite/node_modules/async/lib/async.js:316:29
[ERROR]     at <obscured>/workspace/node_modules/gulp-svg-sprite/node_modules/svg-sprite/node_modules/async/lib/async.js:675:17
[ERROR]     at SVGSpriteSymbol.SVGSpriteBase._buildHTMLExample (<obscured>/workspace/node_modules/gulp-svg-sprite/node_modules/svg-sprite/lib/svg-sprite/mode/base.js:206:2)
[ERROR]     at SVGSpriteSymbol.<anonymous> (<obscured>/workspace/node_modules/gulp-svg-sprite/node_modules/svg-sprite/lib/svg-sprite/mode/standalone.js:119:9)

Any ideas?

@jkphl
Copy link
Collaborator

jkphl commented Jun 5, 2015

Yeah, sorry. This regression bug was introduced by PR #23 — it's already patched in the current GitHub master, a new release will follow shortly. I you don't want to wait please replace your ìndex.js with the most recent one.

@jkphl jkphl added the bug label Jun 5, 2015
@jkphl jkphl self-assigned this Jun 5, 2015
jkphl added a commit that referenced this issue Jun 5, 2015
@jkphl
Copy link
Collaborator

jkphl commented Jun 5, 2015

Should work again as of release 1.2.2. Sorry for the troubles.

@jkphl jkphl closed this as completed Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants