Questions tagged [angularbuild]

36 questions
7
votes
2 answers

Angular on Azure DevOps running out of memory even with max_old_space_size set

I have an angular project that I recently upgraded to Angular 13. This project is building in Azure DevOps. About 1 in 3 builds fail due to memory issues. I get lots of different errors each run, but they all are about memory. I have scoured the…
Chris Kooken
  • 32,730
  • 15
  • 85
  • 123
5
votes
1 answer

Pass environment variable value to Angular app from docker file

I have an Angular app where i'm trying to set the environment variable from outside of the app i.e., from docker compose file. I'm referring below…
Raghav
  • 1,139
  • 4
  • 15
  • 35
5
votes
1 answer

Configuration doesn't match the required schema: Data path "/lib" must NOT have additional properties (umdModuleIds)

When I run ng build I get, ❯ ng build Building Angular Package Configuration doesn't match the required schema. Data path "/lib" must NOT have additional properties (umdModuleIds). What is the source of this problem and how can I resolve it
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
4
votes
3 answers

Angular 12 Index html generation failed error

Upgrading to angular 12 with the following command ng update @angular/core@12 @angular/cli@12 cause me to have the following error, when compiled with the --configuration production mode. ✖ Index html generation failed. undefined:15:4027680: missing…
Raphaël Balet
  • 6,334
  • 6
  • 41
  • 78
3
votes
1 answer

Angular npm run build - Locale data for 'fr-FR' cannot be found

In my angular.json on adding fr-Fr locale, I see a message Locale data for 'fr-FR' cannot be found. Using locale data for 'fr' on running command npm run build. However I see the proper structure in my dist folder with fr-FR generated. Is this a…
Rajesh
  • 2,472
  • 3
  • 25
  • 31
3
votes
0 answers

Scripts.js and styles.js file do not get generated

I tried following tutorial to generate my first own custom component / web component in Angular: https://indepth.dev/posts/1116/angular-web-components-a-complete-guide It's from 2020, so it should be relatively up to date. I also tried other tuts,…
2
votes
0 answers

Angular i18n not supporting all locales in angular.json

My angular application I want to support languages french(Canada), french(France) and US english. This is my angular.json file i18n code. "i18n": { "sourceLocale": "en", "locales": { "fr-CA":…
Rajesh
  • 2,472
  • 3
  • 25
  • 31
2
votes
0 answers

Build only specific module of angular application

I am working on an a large scale angular application which has more than 500 pages. It has a lot of modules which are lazily loaded. Now the problem is that our app takes too much time to build because of its size, so whenever we have to publish…
Shoaib Iqbal
  • 2,420
  • 4
  • 26
  • 51
2
votes
1 answer

Angular9: build has extra step of compiling

Since I updated my Angular8 project to Angular9, I can see an extra step of compiling to esm. This makes my build take longer by 1 minute. It looks something like this: Compiling @angular/animations : es2015 as esm2015 Compiling…
Varun Sukheja
  • 6,170
  • 5
  • 51
  • 93
1
vote
1 answer

Why Estimated Transfer Size does not reflect while loading the bundle in the the browser with Angular build?

I see "Raw Size" and "Estimated Transfer Size" while generating the bundle with Angular build. But when I load the site in browser, the chrome dev tools shows main.js file is loading with raw size? Am I missing something? Is there a way to receive…
Kaushal P
  • 45
  • 1
  • 5
1
vote
0 answers

MIME Type error: Failed to copy main.js, runtime.js, etc files to sub-locations

enter image description here enter image description here We have Angular Localization in our App, we set up the Nginx.Default.Conf with different locations such as "Location /en-US/ {...}" "Location /zh-CN/ {...}" . When the app builds, it…
mochi
  • 19
  • 2
1
vote
1 answer

angular library module with an entrycomponent

hello i have an angular library module with an entry component this entry component HTML template has
{{ bodyMessage }}
1
vote
2 answers

'Generating browser application bundles' message while building dev version

I'm using Angular 12.0.2, and seeing the message Generating browser application bundles. I'm not building the prod version, but running the dev version. Is this the normal behavior for a Angular Development Build? Google Chrome DevTools Source…
wonderful world
  • 10,969
  • 20
  • 97
  • 194
1
vote
2 answers

TypeError: ansiColors.create is not a function at Object.

Help me to resolve following angular build issue ng build --configuration=qa /opt/tomcat/.jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/NodeJS_14.15.0/lib/node_modules/@angular/cli/utilities/color.js:22 const colors =…
1
vote
2 answers

How to exclude the modules from angular build?

In my angular application, there are bunch of modules. I want to exclude few modules from angular build. ex: I have a one repository in which i do have entire code with all the angular modules and it's working fine. some of modules are chat module,…
Prashant
  • 11
  • 2
1
2 3