drdk / grunt-dr-svg-sprites

Grunt plugin to create SVG sprites with PNG fallbacks at needed sizes
113 stars 19 forks source link

Fatal error: Cannot read property '1' of undefined #28

Closed isobar-ranesco closed 10 years ago

isobar-ranesco commented 10 years ago

I'm getting the above error when this tasks runs.. It will actually show the message underneath 'Building SVG sprites'.

Here is my setup:

'svg-sprites': {
    'icons' : {
        options: {
            spriteElementPath: 'source/assets/svgs',
            spritePath: '.tmp/images/sprites/icons.svg',
            cssPath: '.tmp/styles/_icons.scss',
            sizes: {
                std: 24,
                small: 18,
                large: 36
            },
            refSize: 'large',
            unit: 12
        }
    }

I have no idea how to fix this.

isobar-ranesco commented 10 years ago

I've figured out the issue, there is a dependency with async package.

phloe commented 10 years ago

@isobar-ranesco Did a newer version of async trip up the plugin? If so I might need to do some fixing...

isobar-ranesco commented 10 years ago

Nah, i didn't have async task included. Shouldnt this be automatically be installed when you install this module?