You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 17, 2019. It is now read-only.
When including ember-cli-eyeglass for sass compiling within an addon or engine, Eyeglass only looks inside the app directory, not the addon directory (app should be empty), and complains. Root issue is really with eyeglass not able to compile an addon, since it only looks in node_modules/ember-cli-eyeglass/index.js, looks for consuming app's env, and then dies:
Example error output:
⠋ BuildingCannot read property 'env' of undefined
TypeError: Cannot read property 'env' of undefined
at Object.registry.add.toTree (/Users/cklimkow/workspace/testmanager-engine_trunk/node_modules/ember-cli-eyeglass/index.js:34:59)
The culprit is line 34 in index.js: var projectConfig = addon.project.config(addon.app.env);
app is undefined, since ember-cli-eyeglass is being used in an addon rather than an app. I'm assuming this should instead be a recursive call to find the app that is consuming the addon using ember-cli-eyeglass.
When including ember-cli-eyeglass for sass compiling within an addon or engine, Eyeglass only looks inside the app directory, not the addon directory (app should be empty), and complains. Root issue is really with eyeglass not able to compile an addon, since it only looks in
node_modules/ember-cli-eyeglass/index.js
, looks for consuming app's env, and then dies:Example error output:
Current hack/work-around:
...and then we create an
eyeglass-exports.js
file in the root:Consuming Ember app must then
@import "addon-name";
in itsapp.scss
./cc @cklimkowsky @nathanhammond
The text was updated successfully, but these errors were encountered: