7,458 questions
0
votes
1
answer
55
views
Errors in unit tests after updating to Angular v21
After updating an existing app with Zone change detection to Angular v21, I got a lot of errors in the unit tests. I'm getting some NG0100: ExpressionChangedAfterItHasBeenCheckedError errors, but also ...
0
votes
0
answers
75
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 ...
0
votes
3
answers
255
views
How to inject values from a .env file into Angular environment.ts files during development and prod builds?
I have an Angular 18 app and need to inject environment variable values from a .env file into my environment.ts file and environment.development.ts. I want the values available during development (ng ...
2
votes
1
answer
126
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
0
answers
83
views
Nx build fails on Jenkins, but works fine everywhere else
I have an angular app which builds fine in all our dev environments. But, fails to run in jenkins every single time. The only difference is in Jenkins we run it inside a docker container.
npm install ...
1
vote
1
answer
50
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/\*\*/\*....
5
votes
0
answers
156
views
Long compile time in angular 20
After upgrading my angular project from 19.2.15 to 20.3.1
My project's compile time (ng build) when from 85.426 seconds to 453.679 seconds.
The resulted bundle size difference is minimal (different by ...
0
votes
0
answers
33
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
0
answers
24
views
Angular-Cli: @defer on template is not working with @ngtools/webpack
my angular project doesn't have cli, rather we have implemented the build using @ngtools/webpack.
I am trying to use @defer in my template to lazyload one of the component. it's supposed to create a ...
1
vote
2
answers
64
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
1
answer
84
views
Angular CLI generated component test files are still modular
I created a component using the Angular CLI (quite recent version)
ng --version
19.2.14
I did this using ng g c foo
The problem I have with this is that the FooComponent is standalone (it should be)...
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 ...
0
votes
0
answers
84
views
How to integrate MapLibre GL JS CSP version with Angular
I am trying to integrate MapLibre GL JS into a typescript based Angular app, but I have a strict CSP policy and need to use the alternative CSP version that is supplied in the npm package. The ...
-1
votes
1
answer
50
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>&...
1
vote
0
answers
82
views
Angular app fails to start and build in Linux server or Docker image being run on Linux Server
I am facing strange issue with ng serve and ng build commands since version 19.2.11. When I run these commands on Oracle Linux server or via Docker build I see EsBuild error
[root@SERVER test]# pnpm ...