85 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 ...
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&...
0
votes
1
answer
151
views
Unable to upgrade properly Angular v15 | Throwing Error | Not able to generate yarn.lock file
I am following the Angular upgrade site and upgrading the MFE's from the same.
Once I run the command ng update @angular/core@15 @angular/cli@15 , it did update the version from v14 to v15 but couldn'...
2
votes
0
answers
183
views
How to make angular esbuild ng serve watch for Typescript project references with es-build?
Is there a way to make ng serve watch for Typescript project references with es-build?
(Or any arbitrary folder outside of the project root, for my case, in the node_modules folder).
Notes :
In may ...
1
vote
1
answer
283
views
URI malformed issue from @angular-devkit's dependency library Vite
I just created a new angular application (version - 17.3.9) using the ng new url-test-app command.
I start the application using npm start, and navigating to http://localhost:4200 works fine.
But if I ...
1
vote
1
answer
812
views
Upgrading Angular 16 => 17 seeing "Cannot find module '@angular/build/package.json'"
I'm upgrading my app from Angular 16 => 17. Everything going fine, but when I do npm install and then ng serve I get an error:
An unhandled exception occurred: Cannot find module '@angular/build/...
3
votes
1
answer
1k
views
Why does this nx executor ignore its dependsOn setting?
tl;dr: I am trying to chain two nx targets using the dependsOn property, but it seems to be ignored.
In my project.json file, there are the following targets (among others):
build: executor = @...
2
votes
1
answer
193
views
Jest tests using @angular-devkit/schematics are throwing errors for the encoded data was not valid for encoding utf-8
On three different applications Angular are failing all test that use @angular-devkit/schematics. Two of the applications were passing fine on Angular 17.2.0 but failed after upgrading to 17.3.7. The ...
0
votes
0
answers
60
views
Angular11: fileReplacements stopped working after angular update
My team and I are updating the Angular version of our app. We were using version 10.2.3 and migrated to 11.2.19 in angular/cli
Before updating, our environments files were replaced by fileReplacements
...
0
votes
1
answer
383
views
Trying to installing Angular version 15, when latest version installed is 17, throws warning for Unsupported engine
In my System Angular Version 17 was installed. I tried installing Angular 15. To achieve this I tried
npm uninstall -g @angular/cli. Angular is successfully uinstalled.
npm cache clean(this throws ...
0
votes
1
answer
120
views
Angular v10: how do i handle this overlay issue of p-calendar
Overlay going beyond viewport
how do i prevent overlay from exceeding the view port of the browser
overlay should be displayed entirely on screen from top to bottom
would appreciate your help and ...
3
votes
1
answer
2k
views
Merge build files into single one file in Angular 17
After the migration of Angular 17 to vite, I encountered a problem that it was not possible to merge all new files into one single file without changing the builder to the old one @angular-devkit/...
1
vote
0
answers
596
views
After Angular upgrade to 16 ng s throws error - Class extends value undefined
I have upgraded Angular from version 15 to 16
And also have upgraded all the dependency packages in my app to latest versions
After Npm i and on running ng serve it throws error as
An unhandled ...
1
vote
0
answers
2k
views
How much RAM for angular build is fine?
We encountered an issue while building our Angular Apps, it consumes too much memory, about 8 gigs for average project. Before blaming AngularCLI, creating a ticket and asking for help, I just want to ...
2
votes
1
answer
596
views
Why is my stencil components library failing to generate a symbol that seems to be required when running a build with angular-devkit/build-angular
At Big Give we have a library of web components built using stencil and build-angular.
Last week we were trying to upgrade from stencil v2 to stencil v3, but we started getting errors as shown below ...
0
votes
1
answer
165
views
Angular 15.1 - Infinite Loop on Change Detection when removing babel-polyfill
We had a an old babel-polyfill in our project. Now, when we remove it, Angular DevTools shows an infinite Change Detetction Loop with Source "Window.addEventListener:message".
Anyone has an ...
1
vote
0
answers
828
views
BUILD with @angular-devkit/build-angular:browser and SERVE with @angular-builders/custom-webpack:dev-server
I have an angular workspace with this structure:
├── projects
│ ├── lib-1
│ ├── lib-2
│ ├── lib-wrapper
│ .
│ .
│
└── src
├── app
├── assets
.
.
where I develop ...
1
vote
1
answer
814
views
Version compatibility issue for dependency @angular-devkit/build-angular in angular
I have created an new angular project and npm install is working fine but I am getting below error during build:
C:\Users\212807091\Documents\GIT_Codebase\idm-gui\node_modules\@angular\cli\...
0
votes
1
answer
5k
views
angular/compiler-cli peer dependencies
I've tried a lot to fix this problem, but I can't find any solution.
This is the error:
npm ERR! While resolving: @angular-devkit/[email protected]
npm ERR! Found: @angular/[email protected]
npm ...
1
vote
1
answer
1k
views
Preloading strategy slow down when using with Angular universal app (SSR)
I am using lazy loading for modules. But when the user navigates to the lazy loaded module route, it takes a couple of seconds to load the module.
So I use a custom preloading strategy with 20 second ...
0
votes
0
answers
791
views
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 ...
2
votes
2
answers
1k
views
Webpack external module in microfrontend/ multirepos angular gives an error on build
I have created a Angular project to call the microfrontend from other running angular project. I have import the module in my app by using webpack.config.js.
It is working well locally but failed on ...
0
votes
1
answer
1k
views
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://...
2
votes
1
answer
8k
views
Angular doesn't work for safari browser. promiseReactionJob Error
Please understand that it may be difficult to understand because of my poor English.
We made a new Angular project and confirmed that it is working properly when connecting with Safari.
But the ...
1
vote
0
answers
453
views
Error in ng serve command. ./ node module/@angular-devkit/build
node version 14.15.0 and angular version 12.0.5;
earlier it worked fine but after reinstallation of angular and nodejs it shows this error on ng serve command.
ERROR in ./src/assets/styles/style.scss (...