93 questions
0
votes
1
answer
66
views
import().then not working after upgrade to Angular 19
I need to import libraries that are not ESM compliant.
One of them is called xlsx (SheetJS).
When working with Angular 17 and earlier versions, I just did:
import('xlsx').then(xlsx => {
const ws:...
1
vote
0
answers
42
views
How can I make an Angular app load assets from correct level of an npm workspace
I have an Angular application that lives inside an NPM workspace:
workspace
workspace/app1
workspace/app2
I have a 3rd party library integrated, and I need to include some assets in my build, so I do ...
0
votes
0
answers
142
views
Angular18 Jest unit test run time more than doubles after updating jest.config.test global{...} to transform{...}
In the package.json, I updated the devDependencies
@angular-builders/jest": "^17.0.0" to "@angular-builders/jest": "^18.0.0" and
"jest-preset-angular": &...
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",
...
1
vote
1
answer
99
views
why recent angular project build outputs individual component css source map
I generated a new Angular 18 project from scratch and brought over my components to take advantage of new option defaults and settings. I'm happy I did so, but I noticed that it now seems to be ...
1
vote
0
answers
1k
views
How to configure webpack.config.ts @angular-builders/custom-webpack Angular 18
I am using an Angular 18 project and @angular-builders/custom-webpack@18 for the custom Webpack configuration. The issue I am facing is that I am developing a web component that uses an image, and I ...
0
votes
2
answers
1k
views
Migration of module federation to native federation in angular 17 project
I am using angular CLI 17 and module federation 17.
I am trying to migrate to angular new build system. In the existing angular.json, I have this builder
"builder": "ngx-build-plus:...
1
vote
0
answers
747
views
In Angular 18 after migrating to the new build system I got an error: Cannot read properties of undefined (reading 'ɵcmp')
After migrating to the new build system. Using the command:
ng update @angular/cli --name use-application-builder
When I try to redirect on a route with lazyLoading module I got the error:
TypeError: ...
1
vote
3
answers
1k
views
Angular modules are not taking global styles and scss variables
In my angular app i have src/styles.scss
@import "./styles/fonts";
@import "./styles/variables.scss";
and in src/styls/variables.scss
$color-brand-darker: #2d323e;
$color-brand-...
1
vote
4
answers
1k
views
Exclude standalone components depending on a build in Angular
I have two environments - one for testing and the second for the release. I have a standalone component that helps me with debugging, but I don't want to include this in the release build. How can I ...
0
votes
0
answers
20
views
How to force angular while executing take files from /dist folder (now webpack takes them from it's memory)
The problem is that we have to test code coverage in our angular project. So we use nyc, nyc modified source files(and insert some code to collect code coverage), but the issue is that while serving ...
1
vote
1
answer
920
views
Migrating a project using @angular-builders/custom-webpack to NX
I'm trying to migrate an Angular project that currently uses the "@angular-builders/custom-webpack build targets to an integrated NX monorepo and during the execution of npx nx@latest init --...
0
votes
1
answer
109
views
Force a variable to be a valid HTML template
In an Angular app, I am looking for a way to force a variable in TypeScript to be a valid HTML template, so that this will be compiled successfully:
let v = '<div>bla…</div>'
but this:
...
13
votes
2
answers
9k
views
What is the difference between the "browser-esbuild" and "application" builders?
Docs description
I saw this in the documentation but I was confused.
Could anyone explain it to me better?
At first I thought that "application" was for SSR but I don't know the real ...
0
votes
1
answer
465
views
Generate a production build for angular without including any dependencies in the bundle
I am creating a new angular application and want to be able to load all project dependencies such as angular libraries, rxjs, moment-js, etc externally from a common location (CDN) in the production ...