Skip to content

Commit 274c8b4

Browse files
committed
prevent crash when addon depends on ember-styleguide
1 parent 532a213 commit 274c8b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module.exports = {
7070
},
7171

7272
checkPreprocessor() {
73-
if (!this.app.project.findAddonByName('ember-cli-sass')) {
73+
if (this.app && !this.app.project.findAddonByName('ember-cli-sass')) {
7474
this.ui.writeLine('ember-styleguide: npm package "ember-cli-sass" is missing. Consider using it to use `@import \'ember-styleguide/globals/variables\'` in your styles.');
7575
}
7676
}

0 commit comments

Comments
 (0)