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
At runtime, require('your-app/config/environment').default.environment changes from a string like "development" to a POJO containing the settings from your .ember-cli.
Custom ember-cli commands that previously accepted their own option named environment are now getting stomped with the settings from .ember-cli. Here is an example of a command that breaks if you try to use the new feature.
When you're using this feature, the EmberApp's env is "[object Object]"
That is what causes point number 1 above. Point number 2 is maybe legitimate, if surprising. It seems that your .ember-cli is allowed to provide defaults for any command line argument.
Activity
ef4 commentedon Aug 16, 2018
So this has got to be a bug:
ember-cli/lib/models/builder.js
Line 50 in 0f9d15d
When you're using this feature, the
EmberApp'senvis"[object Object]"That is what causes point number 1 above. Point number 2 is maybe legitimate, if surprising. It seems that your
.ember-cliis allowed to provide defaults for any command line argument.ef4 commentedon Aug 16, 2018
After more digging, these two issues are one-in-the-same, because the
buildcommand itself is getting itsenvironmentstomped here:ember-cli/lib/commands/build.js
Line 19 in 0f9d15d
It used to receive
{ environment: 'development' }in thecommandOptions, now it will get your POJO.knownasilya commentedon Aug 16, 2018
I'm surprised no tests caught this issue..
rwjblue commentedon Aug 31, 2018
Indeed.
rwjblue commentedon Aug 31, 2018
We should revert ASAP, and bring back the feature with more test coverage.