Angular 15 CLI does not create environments folder when creating an angular project via ng new

See Angular – Configure Environment Specific Defaults EDIT:- As predicted, GitHub Issue After the release of Angular CLI 15.1, a generation schematic will be available to add environment files for all existing build configurations within a project. Example usage: ng g environments To manually create: If you want to recreate environments, follow these steps: Create … Read more

Include assets when building angular library

As already said, angular library now support assets since the v9.x of angular. But it isn’t well explained on their website. To make it work you’ll have to: Add an assets folder at the root of your library project Add “assets”: [“./assets”], into the ng-package.json file of the library { “$schema”: “../../node_modules/ng-packagr/ng-package.schema.json”, “dest”: “../../dist/icon”, “assets”: … Read more

@types/googlemaps/index.d.ts’ is not a module

Thanks to this documentation link : https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html [Angular 6+] You only have to add this line at the beginning (meaning line 1, with nothing before) of your Typescript file : /// <reference types=”@types/googlemaps” /> [Angular 5-] You only have to add this line anywhere in your Typescript file imports : import {} from “googlemaps”; Thanks … Read more