All Questions
Tagged with ng or angular-cli
7,458 questions
0
votes
0
answers
27
views
Angular 21 Vitest, FakeTimers and RxJS debounceTime
I could successfully migrate my Angular 20/Jasmine/Karma app to Angula r21/Vitest
All my tests are running correctly, except the ones that use debounceTime from RxJS
As a workaround for now, ny unit ...
2
votes
0
answers
74
views
Nx Angular build fails intermittently with nx run frontend:build:development - no error output despite --verbose flag
I'm experiencing intermittent build failures with my Angular application in an Nx monorepo. The build command nx run frontend:build:development sometimes succeeds and sometimes fails, but I cannot get ...
1
vote
1
answer
43
views
Using ESLint through "ng lint" CLI command returns error "All files matching the following patterns are ignored: - '/src/**/*.ts' - '/src/**/*.html'
I'm trying to run ESLint through the ng lint CLI command, but it fails, returning the following error:
Error when running ESLint: All files matching the following patterns are ignored:
- '/src/\*\*/\*....
0
votes
0
answers
29
views
How to remove 'unsafe-eval' from CSP in legacy ASP.NET Core 3.1 MVC + Angular 12 project using MVC and JIT compilation?
I have a legacy project developed with ASP.NET Core 3.1 MVC and Angular 12 (originally it was Angular 5).
I need to set a Content Security Policy (CSP) for the website without using 'unsafe-val' to ...
1
vote
2
answers
62
views
Angular 17 R3Injector error not showing actual issues
I posted a similar question yesterday, but I am having an issue where I am upgrading an Angular project to 17 (same issue with 20.x) and it builds, but fails to run post ng serve and ng serve --...
0
votes
0
answers
76
views
How to tell the angular cli to let tailwind apply style to svgs in my public folder
I am building a angular frontend (v20) with tailwind 4.
To keep my svgs separated from my UI code, I want to put them into a separate folder.
I found out that for angular to serve the resources to the ...
-1
votes
1
answer
45
views
How can I pull Angular application files from CDN?
After Angular builder has done its job, index.html already has JS and CSS files auto linked.
Like this:
<!doctype html>
<html lang="en" data-beasties-container>
<head>&...
0
votes
0
answers
48
views
How can I replace my old Angular landing page with a new Angular 19 + Tailwind template while keeping my existing Metronic 7 dashboard(Angular 15)?
I'm trying to replace the landing page of my existing Angular project with a new template I purchased. Here's the situation:
My original project was built using Angular 13, and it includes a ...
1
vote
1
answer
70
views
How to make npm overrides work in stackblitz Angular CLI?
I want to replicate a bug in our Angular 14 project with NgxEditor on stackblitz. But I could not get pass the error Error: Can not convert <"Hello "> to a Fragment (looks like ...
-4
votes
1
answer
52
views
Choose Node.js path when executing npm scripts
When running npm run dev I'd like to have npm use a specific version of Node. In other words, I'd like to configure this script to use a specific Node path.
To make things even more complicated the ...
1
vote
0
answers
42
views
New application created with ng generate application in Angular workspace result in schema error
When I try to create a new application in my workspace with the command ng generate application I get this error
Schematic input does not validate against the Schema: {"name":"my-app&...
1
vote
1
answer
41
views
Poor Angular-CLI 'compile on save' performance
At the moment, after saving a .ts file, I'm seeing
"Generating browser application bundles..."
for 30+ seconds before the browser refreshes. This is painful. Here is what I can tell you so ...
0
votes
0
answers
447
views
Angular 19 with Vite and custom <base href>
I want to have an ASP.NET Server which serves an Angular SPA. The SPA should not be served at /, but on a subpath, say /spa. Basically that means I just have to put the angular build output results in ...
0
votes
0
answers
206
views
Angular app.module.ts not compiling, NgModule not declared, and component import issues
I created a basic Angular project in VS Code, but the app.module.ts file was missing, so I manually created it and added @NgModule. I then generated a new component named user and imported this user ...
0
votes
0
answers
337
views
Angular Nx Project: “JavaScript heap out of memory” when building/serving with Kendo UI
I'm working on an Angular Nx project that uses Kendo UI for Angular components. Recently, I’ve been facing persistent “JavaScript heap out of memory” errors whenever I run the development server or ...
1
vote
2
answers
2k
views
error Error: Failed to install package "@esbuild/win32-x64"
node: 16.20.0
npm: 10.8.3
angular-cli: 19.0.0
OS: win32 x64
While trying to do npm install on udemy code repository it hits with following error.
npm error path C:\Users\<username>\Documents\<...
2
votes
2
answers
267
views
Unused Injectable services with providedIn: 'root' are Included in main.js, increasing bundle size (Angular 19, Standalone)
Issue:
In an Angular 19 standalone application, I have an API client file containing over 100 @Injectable services, each marked with providedIn: 'root'. However, only 3–4 of these services are used in ...
0
votes
1
answer
155
views
How to add a custom header in ng serve proxy (Angular 18+)
I am trying to add a custom header to a proxy request when using ng serve in my Angular 18 app. I've tried the following configurations:
// proxy.config.js
const proxyConfig = {
"/api/v1": ...
1
vote
2
answers
1k
views
Why does a new Angular 19 app error when executing ng add apollo-angular?
I'm trying to add apollo-angular to my Angular 19 project, but I'm getting the following output in the terminal:
We couldn't find 'esnext.asynciterable' in the list of library files
to be included in ...
1
vote
2
answers
10k
views
Upgrading Angular-CLI from Angular 17 to Angular 19 causing major errors on my system -
I was running nG version 17.3 on my Win10 system. I wanted to upgrade my Angular CLI to latest version 19.
So I did the following steps-
npm uninstall -g @angular/cli
npm install -g @angular/cli@...
0
votes
1
answer
194
views
ng version fails with error "Cannot find module ./package.json"
I tried to install Angular CLI for learning Angular on Node 23 with npm install -g @angular/cli . The install seemed successful but post install while trying to run the ng version command I receive ...
1
vote
1
answer
416
views
Error NG0800: Importing providers supports NgModule or ModuleWithProviders but got a standalone component after migrating to standalone components
I’ve been migrating my Angular app to use standalone components following the official migration guide. I ran the following commands:
ng g @angular/core:standalone and selected "Convert all ...
1
vote
1
answer
3k
views
Angular 19 CLI Builder Problem in different node versions
I can normally build my app in Angular 17 with either node 18.10.1 or 20.9.0.
When I update to Angular 19 then my build stops working.
Here is my package.json.
{
"name": "app",
...
2
votes
2
answers
645
views
While adding @angular/material module to the angular application it is giving error
I am developing a no standalone angular app with the command --no-standalone but when I'm trying to add @angular/material, it throws the following error:
Cannot find module '..\node_modules\@...
0
votes
1
answer
160
views
Can Angular output hashing use a query string parameter instead of renaming files?
The "--outputHashing=all" option changes the name of my files to bust the cache. This is not a great option for me. Can I get this feature to append a query string parameter (like "?v=...