Skip to content

environment.dev|prod|etc.ts files don't appear to be copied into environment.ts #2075

Closed
@rjcoupe

Description

@rjcoupe

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    Ubuntu 16.04
  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:
» ng version                                                                                                                      
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 1.0.0-beta.11-webpack.8
node: 6.3.0
os: linux x64
  1. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.
    1. Add some custom fields/data in environment.dev.ts (or environment.prod.ts)
    2. Import src/environments/environment into a component and attempt to use a newly added variable.
    3. ng serve/build with the appropriate env set.
    4. Variable will not have been read, as environment.ts will still be { production: bool }
  2. The log given by the failure. Normally this include a stack trace and some
    more information.
    N/A
  3. Mention any other details that might be useful.
    Specifically importing environment.dev or environment.prod (as appropriate) works fine, but obviously isn't practical.

Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenttype: bug/fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions