All Questions
Tagged with webpack angular-cli
600
questions
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 ...
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, ...
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 ...
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 (...
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 ...
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 ...
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 ...
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 ...
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 ...
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://...
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 ...
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\...
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 ...
-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": ...
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-...