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

It is an error to omit the modes in options #33

Closed
akabekobeko opened this issue Jun 22, 2016 · 0 comments
Closed

It is an error to omit the modes in options #33

akabekobeko opened this issue Jun 22, 2016 · 0 comments
Labels
Milestone

Comments

@akabekobeko
Copy link
Owner

Example:

const icongen = require( 'icon-gen' );

icongen( './test/data/sample.svg', './test', { report: true } )
.then( ( results ) => {
  console.log( results );
} )
.catch( ( err ) => {
  console.error( err );
} );

Error:

TypeError: Cannot read property 'forEach' of undefined
    at Function.generate (.../icon-gen/lib/icon-generator.js:161:12)
    at .../icon-gen/lib/icon-generator.js:84:25
    at .../icon-gen/lib/png-generator.js:92:11

Because the modes is undefined in IconGenerator.generate.

@akabekobeko akabekobeko added this to the v1.0.3 milestone Jun 22, 2016
akabekobeko added a commit that referenced this issue Jun 22, 2016
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

1 participant