BrianSipple / ember-cli-svgstore

Ember addon to combine SVGs as symbols in a spritesheet.
MIT License
20 stars 8 forks source link

Errors - `Cannot read property 'options' of undefined` #16

Open zhujy8833 opened 7 years ago

zhujy8833 commented 7 years ago

I have an ember addon installing ember-cli-svgstore, when my addon consumed by a parent consuming app, I can see error:

Cannot read property 'options' of undefined
TypeError: Cannot read property 'options' of undefined

which points to [this line] (https://github.com/salsify/ember-cli-svgstore/blob/master/index.js#L15), where this.app is undefined

I have a PR opened just now: https://github.com/salsify/ember-cli-svgstore/pull/15, tested locally and seems able to resolve the issue