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

Exception : '[TypeError: Object #<Object> has no method 'prepareDimensions']' #2

Closed
stefanjudis opened this issue Feb 19, 2014 · 2 comments
Assignees
Labels

Comments

@stefanjudis
Copy link

Hey hey,

I'm running with the following grunt configuration:

    svgsprite : {
      ingredients : {
        src     : [ '<%= pkg.assets.src %>/svg/ingredients' ],
        dest : 'path/to/css/dir',
        options : {
          cleanwith : 'svgo',
          css       : false,
          sass      : '_sprite',
          sassout   : '<%= pkg.assets.src %>/styles/sprites',
          maxwidth  : 50,
          maxheight : 50,
          padding   : 10,
          keep      : true,
          dims      : true
        }
      }
    },

And unfortunately I'm getting the following error.

Running "svgsprite:ingredients" (svgsprite) task
Verifying property svgsprite.ingredients exists in config...OK
Files: ./project/Yves/assets/svg/ingredients -> path/to/css/dir
Options: cleanwith="svgo", css=false, sass="_sprite", sassout="./project/Yves/assets/styles/sprites", maxwidth=50, maxheight=50, padding=10, keep, dims
Building SVG sprite from directory "./project/Yves/assets/svg/ingredients" ...
Options: cleanwith="svgo", css=false, sass="_sprite", sassout="./project/Yves/assets/styles/sprites", maxwidth=50, maxheight=50, padding=10, keep, dims
[TypeError: Object #<Object> has no method 'prepareDimensions']
An uncaughtException was found, svg-sprite will end.
FAIL: 1

Debugged already a bit and the problem is based in svg-sprite itself.

Thanks a lot.
:)

@jkphl
Copy link
Collaborator

jkphl commented Feb 19, 2014

Should be fixed with svg-sprite commit 4c75621.

@jkphl jkphl closed this as completed Feb 19, 2014
@stefanjudis
Copy link
Author

Running "svgsprite:ingredients" (svgsprite) task
Building SVG sprite from directory "./project/Yves/assets/svg/ingredients" ...
✔ /Users/stefanjudis/Sites/natue-shop/path/to/css/dir/svg/sprite.svg (27422 bytes)
✔ /Users/stefanjudis/Sites/natue-shop/project/Yves/assets/styles/sprites/_sprite.scss (1363 bytes)

Done, without errors.

Really really thanks... Let's put it in our production pipeline! 👍

@jkphl jkphl added the bug label May 27, 2014
@jkphl jkphl self-assigned this May 27, 2014
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