Questions tagged [angular-devkit]

61 questions
0
votes
1 answer

How do I properly install @angular-devkit/build-angular with Angular 13?

I have these dev dependencies in my Angular 13 project "devDependencies": { "@angular-devkit/build-angular": "~13.2.5", "@angular/cli": "~13.2.5", "@angular/compiler-cli": "~13.2.0", When I run npm i, I get this error npm ERR!…
Dave
  • 15,639
  • 133
  • 442
  • 830
0
votes
0 answers

Can we implement Angular microfrontend using angular-devkit?

I have recently gained an interest in developing microfrontends using module-federation, and I have started converting an existing Angular 13 app to microfrontend. The issue that I'm facing is that when I install module-federation, the default…
0
votes
1 answer

Angular version mismatch on ng serve

This version of CLI is only compatible with Angular versions ^13.0.0, but Angular version 12.2.13 was found instead. Please visit the link below to find instructions on how to update Angular. https://update.angular.io/
0
votes
0 answers

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory building Angular app

I am using VS Code (with the Nrwl nx extension) to build the Angular app. My initial "serve" works but once I make a change and the project is rebuilt I have started crashing with the error stack shown later. I have to exit VS Code, restart VS Code…
0
votes
1 answer

ng build throws "ERROR in Cannot read property 'kind' of undefined"

So I have a project I am working on that needs me to use ng build --prod to build a client. When I run ng build --prod I get the same error every time: ERROR in Cannot read property 'kind' of undefined This error occurs every time and no matter what…
0
votes
3 answers

Corrupted file - .xml2js.DELETE/package,json in node_modules within an Angular project

Errors began after updating to Angular-Cli V10.1.0. Initial problems I encountered: The ng command was not working. I found that core dependencies were missing: npm WARN @angular/fire@6.0.0 requires a peer of @angular/common@^9.0.0 but none is…
0
votes
1 answer

HttpClientModule and mat-icons will not work when using ng serve (Angular 6)

I've recently added basic unit tests with jest and now for some reason when I run the angular app using "ng serve" my mat-icons show up as and my HttpClient calling my backend will not return any response. I am subscribed to the observable and even…
0
votes
0 answers

Angular Schematics Prompt type "confirmation"

Requirement I want to use prompt type "confirmation" in schematics and based on the "Yes"/ "No" I want to hide the next question. As shown in the below schema.json file there is one confirmation and one list of multiselect values. I want to hide…
0
votes
1 answer

NPM update dependencies of dependencies

I am currently having problem a updating NPM package tree-kill which is a dependency of @angular-devkit/build-angular. tree-kill 1.2.1 has a security advisory issued https://nodesecurity.io/advisories/1432 which is currently failing builds in my CI…
ChrisMB
  • 113
  • 1
  • 5
0
votes
0 answers

Angular "ng build" compile problem with frontend and backend in same repo

I have project where I have a both the frontend (Angular) and backend server code (NestJS). In the folder I have separate folders for frontend and server and in both folders separate package.json and node_modules folders If I go to the frontend…
jani_r
  • 637
  • 1
  • 7
  • 18
0
votes
0 answers

Angular Universal serve:ssr Server Side Render Builder

I want ssr on dev mode to reproduce production server render during development, And i can't setup ssr and ng serve both running because of live reload will not work on ssr port. Server side render not working on development mode yet with hot…
0
votes
2 answers

EEXIST: file already exists angular-cli buid

When I try to execute ng build in -prod mode with --output-path flag I am getting this error EEXIST: file already exists, mkdir Below mentioned are my Environment configurations angular/cli version 7.3.8 angular-devkit/build-angular 0.13.9…
Keshan Nageswaran
  • 8,060
  • 3
  • 28
  • 45
0
votes
1 answer

How change paths to resources in generating by angular-cli css bundle?

Description In our angular project based on webpack we use next deploy pipline: 1. Generate all static resources to static folder 2. Generate index html 3. Deploy static resources to "Static server" (S3 bucket) 4. Deploy index.html to "Main server" …
0
votes
1 answer

Dev/Prod environments for different customer configurations

The Build Config Section of the Angular Workspace Configuration Guide discusses how various configurations can be managed within the same app. In my case, I decided to create a config for each customer: // angular.json excerpt "architect": { …
Ronin
  • 7,322
  • 6
  • 36
  • 54
0
votes
1 answer

how to specify a set of tests to karma programmatically?

so the thing is. I am building an Angular Test Explorer. I am able to see all the tests and run them all together by using the karma module like this: public async runWithModule(): Promise { return new Promise(resolve => { …