Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular V18, missing the environments folder

Tags:

angular

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?

like image 462
Phil Huhn Avatar asked Dec 12 '25 00:12

Phil Huhn


1 Answers

Environment files were removed in v15 from the default setup.

You can easily create them using the schematics : ng g environments

like image 160
Matthieu Riegler Avatar answered Dec 13 '25 15:12

Matthieu Riegler