angular-cli-v9

Configuring angular production files after build

放肆的年华 提交于 2021-02-11 13:50:22
问题 I have an angular 9 project which is part of an application suite installer [Wix installer]. One of the settings used by the angular app is the address of API which it fetches its data from some configurable address. I know that I can have many angular environment files and simply use commands such as the followings: environment.env1.ts export const environment = { production: true, apiAddress: "http://apiAddress1/api/", }; ng build --prod --configuration=env1 or environment.env2.ts export

How to import all Angular Material modules in Angular 9

梦想与她 提交于 2021-01-02 07:51:57
问题 I want to import all angular material modules and use into overall angular project templates. 回答1: We can create a new module and import all material modules in the new module and use into our templates. Please use this command and run into Angular CLI: ng g m material --module=app --module=app - this command will automatically import newly created MaterialModule module and add into AppModule imports[] array. Now open MaterialModule file and Ctrl + C / Ctrl + P : import { NgModule } from '

How to import all Angular Material modules in Angular 9

狂风中的少年 提交于 2021-01-02 07:50:03
问题 I want to import all angular material modules and use into overall angular project templates. 回答1: We can create a new module and import all material modules in the new module and use into our templates. Please use this command and run into Angular CLI: ng g m material --module=app --module=app - this command will automatically import newly created MaterialModule module and add into AppModule imports[] array. Now open MaterialModule file and Ctrl + C / Ctrl + P : import { NgModule } from '

Angular9: ERROR in The target entry-point “@angular/fire/auth” has missing dependencies

主宰稳场 提交于 2020-06-10 09:11:28
问题 When I run npm run start I get the below error regarding firebase. Tech : Angular version 9, Firebase, Firestore, Geofirestore Angular CLI. Error : ERROR in The target entry-point "@angular/fire/auth" has missing dependencies: - firebase/auth - firebase/app Dependencies to note: "@angular/cli": "~9.1.1", "@angular/core": "~9.1.1", "@angular/fire": "^5.1.1", "firebase": "5.10.1", "geofirestore": "3.2.3", Package json : { "name": "project", "version": "1.0.0", "scripts": { "ng": "ng", "start":

Angular9: ERROR in The target entry-point “@angular/fire/auth” has missing dependencies

烈酒焚心 提交于 2020-06-10 09:06:31
问题 When I run npm run start I get the below error regarding firebase. Tech : Angular version 9, Firebase, Firestore, Geofirestore Angular CLI. Error : ERROR in The target entry-point "@angular/fire/auth" has missing dependencies: - firebase/auth - firebase/app Dependencies to note: "@angular/cli": "~9.1.1", "@angular/core": "~9.1.1", "@angular/fire": "^5.1.1", "firebase": "5.10.1", "geofirestore": "3.2.3", Package json : { "name": "project", "version": "1.0.0", "scripts": { "ng": "ng", "start":

Angular 9: Value at position X in the NgModule.imports is not a reference

别说谁变了你拦得住时间么 提交于 2020-05-24 00:47:18
问题 I upgraded an Angular App from v8 to v9. The project imports a custom UI library using Angular 8 and moment.js. When I build it: It generates a warning: WARNING in Entry point '@myLib/catalogue' contains deep imports into '/Users/xyz/Projects/forms-frontend/node_modules/moment/locale/de'. This is probably not a problem, but may cause the compilation of entry points to be out of order. In the @myLib/catalogue.js file of the library (inside node_modules folder), the moment.js DE locale is