diff --git a/lib/ember-addon-main.js b/lib/ember-addon-main.js index 42892573..4f329598 100644 --- a/lib/ember-addon-main.js +++ b/lib/ember-addon-main.js @@ -187,9 +187,11 @@ module.exports = { }, templateCompilerPath() { - let config = this.projectConfig(); let templateCompilerPath = - config['ember-cli-htmlbars'] && config['ember-cli-htmlbars'].templateCompilerPath; + this.app && + this.app.options && + this.app.options['ember-cli-htmlbars'] && + this.app.options['ember-cli-htmlbars'].templateCompilerPath; if (templateCompilerPath) { return templateCompilerPath;