83
questions
0
votes
1
answer
22
views
URI malformed issue from @angular-devkit's dependency library Vite
Just created new angular application (version - 17.3.9) using command ng new url-test-app
then start application using command - npm start
Now I navigate to http://localhost:4200 . It works fine
Then ...
0
votes
1
answer
56
views
How to use advance javascript optimizations from angular cli >= v16 in webpack ( from @angular-devkit/build-optimizer)
We ve used @angular-devkit/build-optimizer link and @ngtools/webpack in our webpack build of angular app, until we bump script target from es5 to > es2020 and from typescript v4 to typescript v5, ...
0
votes
1
answer
38
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/...
0
votes
0
answers
70
views
Angular CLI: ng update fails due to certificate verification
Today I tried to update from Angular 17 to Angular 18. I am in a company with a custom proxy for the npm registry (uses a Nexus Repository for private packages). So we have disabled certificate ...
0
votes
1
answer
71
views
Angular docker: can't read /.angular/cache
This is my Dockerfile:
# Stage 1: Build the Angular app
FROM node:18 AS builder
WORKDIR /app
# Copy package.json and package-lock.json to install dependencies
COPY package.json package-lock.json ./
...
0
votes
0
answers
139
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 = @...
1
vote
0
answers
43
views
Use Chrome Angular Dev Tools to target an Ifame Angular App
I have an Angular Application that I am developing, but the app only works when rendered in the iframe of another Angular website that I do not own. Since that top level site is in production mode the ...
2
votes
1
answer
97
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
2
answers
210
views
Preprocessing Angular templates before compiling
I'm trying to plug into the compile step and modify the AST to amend a data attribute to DOM elements (HTML templates).
This is to inject information into the DOM at compile time without modifying the ...
0
votes
0
answers
21
views
Preserve folders with .gitkeep files when running a custom Angular schematic
I want to keep all of the folders in the files directory of the Angular schematic, also preserving the .gitkeep files. Unfortunately, the directories with only the .gitkeep file in it are being ...
0
votes
0
answers
43
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
0
answers
35
views
How to suspend nx auto rebuild?
We use the @angular-devkit/build-angular:dev-server executor to build and run our TypeScript application. NX keeps a watch on the sources, so whenever anything changes, it will automatically launch a ...
1
vote
1
answer
2k
views
Angular 17.0.X update to 17.3.3 failing - issue with dependencies
We have an Angular app that we have upgraded to 17.0.X and now we want to get it running to the latest version as of the time of writing - 17.3.X. We have updated the dependencies but we are seeing ...
0
votes
1
answer
209
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
0
answers
51
views
Where to integrate code generation in dev-server command
We are using the dev-server command from @angular-devkit/build-angular to run our TypeScrpt/Angular application locally on a development server with live reloading. This works quite well - whenever a ...