svg-sprite / grunt-svg-sprite

SVG sprites & stacks galore — Grunt plugin wrapping around svg-sprite that reads in a bunch of SVG files, optimizes them and creates SVG sprites and CSS resources in various flavours

Home Page:https://github.com/svg-sprite/svg-sprite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fatal error: Cannot read property 'distribute' of undefined

soultech67 opened this issue · comments

I just posted the following issue (svg-sprite/svg-sprite#94) at https://github.com/jkphl/svg-sprite with details about a bug we're seeing with grunt-svg-sprite / svg-sprite.

I wanted to post the info here as well so people don't spin their wheels.

  1. We reference grunt-svg-sprite as "^1.1.10" and end up with the latest after an 'npm install' on a fresh box.
  2. Back in 1.1.10 grunt-svg-sprite referenced svg-sprite also as "^1.1.10"
  3. The bug seems to be in svg-sprite, so even when I modify our reference to "1.1.10" to force a pull of the old version of grunt-svg-sprite, we still end up with the latest svg-sprite module (1.2.3 right now) which has the bug.
  4. I think you've already fixed the svg-sprite reference to lock it down to an expected version in your packages.json with the "svg-sprite": "~1.2.3" declaration.

You're right, the dependency confusion has already been fixed.

Fixed, please see svg-sprite/svg-sprite#94 for an explanation.