I recreate a reference application for each new version of Angular before upgrading my Angular applications. I have a whole defined process to create the demo application. I use the following to create my reference application:
ng new demo-mg18 --routing --skip-git --standalone false --style css
In running through the instructions, I found no environments folder and the main.ts missing the import. I don't see any option in ng new command. So, what's up? Do I have to add environments feature manually?
Environment files were removed in v15 from the default setup.
You can easily create them using the schematics : ng g environments
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With