Closed
Description
Please provide us with the following information:
- OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Ubuntu 16.04 - 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
- Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.- Add some custom fields/data in environment.dev.ts (or environment.prod.ts)
- Import
src/environments/environment
into a component and attempt to use a newly added variable. - ng serve/build with the appropriate env set.
- Variable will not have been read, as environment.ts will still be
{ production: bool }
- The log given by the failure. Normally this include a stack trace and some
more information.
N/A - 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.