Skip to content

In config/environment.js the value of environment is undefined #16659

Closed

Description

@givanse
ember new test-app
cd test-app

# edit config/environment.js so that it has a log statement
module.exports = function(environment) {
  console.log(environment);
...

# the value is always undefined
ember build --environment=development
undefined

Saw it with

ember-cli: 3.0.2
node: 9.11.1
os: linux x64
ember-cli: 3.1.4
node: 8.11.2
os: win32 x64

Activity

  1. givanse commented on May 19, 2018

    @givanse
    Author

    Same result with:

    ember-cli: 2.18.2
    node: 8.11.2
    os: win32 x64
    
    ember build --environment="production"
    undefined
    

    And I just noticed that if I now execute ember -v in the app folder, instead of getting the version, ember cli tries to build the app :O

    At this point I begin to doubt that it is an ember cli issue. Any ideas on what to poke and probe?

  2. givanse commented on May 22, 2018

    @givanse
    Author

    wrong repo, go to:
    ember-cli/ember-cli#7779

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions