85 questions
Tooling
0
votes
1
replies
92
views
VS Code extension for Angular CLI commands with GUI support
I'm currently using Angular CLI in the terminal ( as we all do :) ) but I'd like a VS Code extension that provides a graphical interface for running Angular CLI commands (generate components, services,...
Score of 0
0 answers
422 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 ...
Score of 1
0 answers
30 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 ...
Score of 1
0 answers
53 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&...
Score of 0
1 answer
196 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'...
Score of 1
0 answers
113 views
Dynamic import of CommonJS yields different result between dev-server and production targets
My Angular 18 application is using the new Angular build system, utilising the "application" target for production builds, thus making my local "dev-server" target use vite.
...
Score of 2
0 answers
205 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 ...
Score of 1
0 answers
55 views
For angular webpack based builders, how to config the `define` for tree shaking or compress in the built-in javaScriptOptimizerPlugin
For angular webpack based builders, how to config the define for tree sharking or compress in the built-in javaScriptOptimizerPlugin ?
async function optimizeWithEsbuild(content, name, options) {
...
Score of 1
1 answer
322 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 ...
Score of 1
1 answer
100 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, ...
Score of 1
1 answer
947 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/...
Score of 0
1 answer
248 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 ./
...
Score of 3
1 answer
1167 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 = @...
Score of 2
0 answers
118 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 ...
Score of 2
1 answer
214 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 ...