Questions tagged [angular-cli-v9]

46 questions
2
votes
0 answers

Angular 9 migration changed tsconfig.app.json

Why it changed from "include": [ "src/**/*.ts" ] to "include": [ "src/**/*.d.ts" ] I know for what exist *.d.ts files. Question - why does it changed in Angular 9?
2
votes
1 answer

Angular service worker doesn't cache assets once deployed on Github pages (sub-directory)

I developed an Angular PWA demo application (Angular v9.1.3), implementing performance and freshness strategies. Locally it works perfectly, even offline. But once deployed on Github pages, it is not working anymore as expected: performance…
Francesco
  • 9,947
  • 7
  • 67
  • 110
1
vote
1 answer

Angualar 10 : Add descritpion (*d.ts) file manually to compilation

I have a angular library which has the description files *.d.ts. in a below structure ├ src │ ├ my-lib │ │ ├ my-typedef.d.ts │ │ │ │ │ └public_apit.ts │ └ tsconfig.lib.json On tsconfig.lib.json i have include it like…
Amir
  • 1,855
  • 3
  • 24
  • 40
1
vote
2 answers

Angular 9: how to focus in mat-input when key press anykey

How to focus in mat-input when key press any key on keyboard. have tried: @HostListener('document:keydown', ['this.search.nativeElement.focus()'])
Kelvin
  • 179
  • 2
  • 12
1
vote
1 answer

cant downgrade angular cli to version 8.x.x

I need to downgrade my angular cli from version 9 to version 8. I have tried the following: npm uninstall -g @angular/cli npm cache verify npm install -g @angular/cli@8.x.x whenever I reinstall it and run ng --version it will still output version 9…
C. Trenholm
  • 351
  • 1
  • 10
1
vote
0 answers

Angular v9 ng serve with specific i18n locale configuration show default locale language

When try to serve my angular v9 app with different locale configuration, Default language shown all the time, while ng build --localize is working as expect. node --max_old_space_size=4096 ./node_modules/.bin/ng serve -c=dev,sv…
0
votes
1 answer

Not able to serve my angular app after upgrading from Angular 8 to 9

My angular project is currently running in Angular 8 and I use HeroDevs\Hero-Loader (https://www.npmjs.com/package/@herodevs/hero-loader/v/2.0.1) for lazy loading of modules for a page containing tabs. Tabs data are lazy loaded whenever user clicks…
GokuSS3
  • 123
  • 1
  • 11
0
votes
0 answers

How I Implement Google picker in Angular CLI?

I want to implement Google Picker in my Angular Cli Project But Facing Issues is there any one who know How to Implement This?? Hey! I want to implement Google Picker in my Angular Cli Project But Facing Issues is This I want Google Picker Api…
0
votes
1 answer

configuring custom path for ngcc in angular project

I am having a requirement where node_modules required for a project are already installed and stored somewhere. And we are running multiple instances of the angular project each inside a separate docker container and we mount the node_modules folder…
0
votes
1 answer

an issue of installing ngx-bootstrap with Angular 14 (Package "ngx-bootstrap" was found but does not support schematics)

I'm having a problem install ngx-bootstrap with angular 14 the package.json as follows: { "name": "testproj", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "watch": "ng build --watch…
0
votes
0 answers

Angular CLI and react JavaScript run in same project how to make it possible

This is my package.json file if I want to run both Angular CLI 10 and reactjs in same platform how can I make it possible. It should be possible because both background is same if we menu-plate router we can run both in same platform. Do any have…
0
votes
1 answer

HTML, SCSS not compiled on save - Angular 11.0.2

I upgraded my app to Angular cli ^11.0.2 recently, from then my HTML and SCSS changes are not compiled on save even when ng serve is running. I have to save the respective ts file to get the html changes compile. I saw a related issue on Github…
lakshman_dev
  • 94
  • 1
  • 12
0
votes
1 answer

MatTableDataSource from another component

I have two components, Order and OrderDetail. In Order I have a MatTableDataSource, which is filled from a service. OrderComponent before contructor listData: MatTableDataSource; displayedColumns: string[]= [ 'row','itemCode',…
0
votes
1 answer

Pass data to Service from main.ts file in Angular application

I have a main.ts file in my Angular CLI application which contains the following export.. By the way, it's a microservice which gets CONTEXT from another microservice export default { async mount({ rootElement, context }: Extension) { //…
Stas.dp
  • 127
  • 1
  • 10
0
votes
1 answer

Issue while installing angular cli on stable node version

Facing an issue while Installing Angular CLI. Tried all the possible workaround like clearing cache, uninstalling, and reinstalling Node. Manually clearing folder of npm-cache in Appdata. The attached screenshot is the error I am facing when I hit…
Jinesh
  • 21
  • 8