Skip to main content

All Questions

Tagged with
0 votes
1 answer
32 views

Angular - Esbuild chunk sizes do not match build output when served

I recently switched my Angular app to v18 and moved from webpack to esbuild. However, when comparing my chunk sizes with code splitting, I see the sizes do not make sense. When using webpack, my ...
Cody Pritchard's user avatar
1 vote
1 answer
46 views

Angular 17 ESBuild Configuration for environment variables

Just migrated from Angular 15 to the 17. And currently it is possible to build and serve with esbuild instead of webpack. With webpack there was a way use a custom webpack config for things like, ...
Semedmar's user avatar
4 votes
2 answers
388 views

Angular 18 and SignalR error when building app : [ERROR] Could not resolve "url", "https", "http", "util" from eventsource

In an Angular 18 application, I need to add real-time technology. The chosen technology is SignalR, but I'm having trouble adding the package and getting a successful build. It seems the error is ...
hsantos's user avatar
  • 573
0 votes
0 answers
71 views

Package updates often cause build error "Cannot find module 'ajv-formats'"

The error happens when building Angular project with ng serve and ng build after updating packages. It's been reported multiple times in Angular CLI repo (#22780, #24291, #27724) and on StackOverflow (...
Ilya Konrad's user avatar
6 votes
2 answers
2k views

Where do I put "platform: 'node'" in an Angular 17 app running on node 20?

TL;DR I need to use platform: 'node' to allow an Angular app to find modules that are no longer bundled with WebPack 5, but are bundled with node. But I've been unable to find the file the platform ...
Thom's user avatar
  • 123
1 vote
0 answers
46 views

What's the latest version of Angular as configured by Angular CLI that uses a version of webpack < 5?

Can anyone tell me the latest version of Angular that uses a 4.x version of webpack, as created using Angular CLI? I'm trying to put together my first simple Angular app, and I've been spinning my ...
Thom's user avatar
  • 123
0 votes
0 answers
30 views

Overriding Angular DomElementSchemaRegistry using @ngtools/webpack

My end goal is to start using a web component library, but also with the preferred outcome of not disabling component validation using CUSTOM_ELEMENTS_SCHEMA since this is an important and valuable ...
ajbrun's user avatar
  • 323
5 votes
0 answers
426 views

Angular 15: error An unexpected error occurred: "could not find a copy of webpack-dev-server to link in c:path\\node_module

Angular 15: error An unexpected error occurred: "could not find a copy of webpack-dev-server to link in c:path\node_module. I'm trying to install the package dependencies using yarn and it errors ...
DPatel's user avatar
  • 91
1 vote
1 answer
187 views

Angular how to change devServer hostname?

i have an Asp.Net Core 6 project with two Angular 14 apps. The first app is available at https://localhost:44313/. The second app is available at https://localhost:44313/clientapp2 and it reloads ...
al.koval's user avatar
  • 2,392
0 votes
1 answer
691 views

Asp.net core and multiple angular apps

I'm trying to create an application with several spa applications. Project uses asp.net core 6, angular 14. I can run the project in development mode. But when I open the project in a browser (https://...
al.koval's user avatar
  • 2,392
4 votes
0 answers
894 views

Angular 15: Migrating require.context to import.meta.webpackContext is causing this error: {}.webpackContext is not a function

I've recently upgraded Angular 14 to 15 and with it there was issues with require.context. Without getting into that - I've used import.meta.webpackContext which is meant to be the ESM equivalent to ...
tanilLemon's user avatar
0 votes
1 answer
168 views

Cannot read property 'length' of undefined TypeError: Cannot read property 'length' of undefined at new Server

Cannot read property 'length' of undefined TypeError: Cannot read property 'length' of undefined at new Server (E:\New folder\Mohsin Projects\fishry-storefront-ppl\node_modules\webpack-dev-server\lib\...
Mobile and PC Tactics's user avatar
0 votes
1 answer
750 views

How to add the project license to the build with and Angular CLI project for xRay license scanning

Our project has a custom license written into license attribute in package.json. When we ng build the project we can see a 3rdpartylicenses.txt generated into dist folder with all the dependencies ...
Eric Reboisson's user avatar
-1 votes
1 answer
514 views

Insert custom attribute in chunks with angular cli project

i have a angular v11 solution with CLI. I've added this line in the angular.json to be able to extend the webpack with my custom implementation "customWebpackConfig": { "path": ...
ubaldisney's user avatar
0 votes
0 answers
41 views

Erro in ng serve -o angular v11

I'm in a "legacy" project on the Angular 11 version, when I do the command ng server -o I get the following error. Erro CLI When I see the error. Erro explained Something related to mini-css-...
Gabriel Duarte's user avatar

15 30 50 per page
1
2 3 4 5
40