Questions tagged [ng-build]

223 questions
0
votes
2 answers

"npm install" does not install @angular/cli, @angular/compiler-cli and @angular-devkit/build-angular properly

I am trying to install npm using the npm install command, and all the packages are installed except @angular/cli, @angular/compiler-cli and @angular-devkit/build-angular. I tried installing them individually, but it is not working. Please tell me…
0
votes
1 answer

ng build throws "ERROR in Cannot read property 'kind' of undefined"

So I have a project I am working on that needs me to use ng build --prod to build a client. When I run ng build --prod I get the same error every time: ERROR in Cannot read property 'kind' of undefined This error occurs every time and no matter what…
0
votes
0 answers

Why would ng build -c dev display errors when ng build runs fine?

Running Angular on my local PC and just running a basic ng build command. When I run ng build everything works as expected. When I try to run using my environment.dev.ts file by running ng build -c dev I get countless errors. Are these true errors?…
user68288
  • 702
  • 2
  • 6
  • 27
0
votes
1 answer

Ng build issues in ec2 build box but not in local

I get the below error in my EC2 build box but the same is not replicable in my local ERROR in node_modules/rxjs-compat/add/observable/dom/webSocket.d.ts(1,46): error TS2307: Cannot find module 'rxjs/websocket'. in local I have tried ng build ng…
Lokesh
  • 59
  • 1
  • 11
0
votes
0 answers

making a config file editable in the staging\prod environment

I'm trying to figure out how to make a configurable config file in angular, enable me to change its variables values after build to staging or prod. I created an application.config.ts in the assets folder, knowing that the assets folder is not being…
Guy E
  • 1,775
  • 2
  • 27
  • 55
0
votes
1 answer

How to resolve BUILD ERROR in angular for a local JS file

I've a simple custom component called DatepickerComponent. This is the project structure. I've a simple JS file calendarLanguages.js and it is under the same roof. Here is the code. calendarLanguages.js export const spanish = { dayNames:…
Tanzeel
  • 4,174
  • 13
  • 57
  • 110
0
votes
0 answers

Microsoft Edge Browser opens Angular application in compatibility mode: IE 11

I am trying to run the angular application in Microsoft Edge browser(created build ng build --prod), but the application is opening in compatibility mode: IE 11. If I run the application locally(command - ng serve) the application is behaving…
0
votes
1 answer

Ng Build --prod takeing nearly 2 hours to build the full project

I enabled benchmarking from webpack and saw that AngularCompilerPlugin._emit.ng.gatherDiagnostics.ng.getNgSemanticDiagnostics takes 1:59:25.180 hours to run. I don't know what started this issue.
0
votes
1 answer

Angular, problem with build on specific route

i want to build my angular app available to get at local.client.appname.com:8000/admin/angular. The app is written in clear HTML and CSS, but on this specific route i want to have built angular app. When i build it using : ng build then my app on…
J4mJeMax
  • 301
  • 1
  • 2
  • 8
0
votes
2 answers

switch development mode and product mode by environments in Angular 5

My angular-cli.json has environments array. "environmentsSource": "environments/environment.ts" "environments": { "dev": "environments/environment.ts", "prod": "environments/environment.prod.ts" In environment.ts, export const environment =…
Hello
  • 796
  • 8
  • 30
0
votes
1 answer

Bitbucket Angular npm run build fails

I'm trying to set up a build pipeline on Bitbucket. I'm using a clean new Angular project. So far it looks like this - step: name: build frontend caches: - node condition: changesets: includePaths: -…
Roman Borovets
  • 818
  • 12
  • 25
0
votes
3 answers

Angular attribute directive - error on prod build expected 1 arguments but got 0

I am working on a large app, developed by multiple teams over a period of time. A frontend developer from a different location added a lot of repetitive imperative code, with dom manipulation using jquery everywhere in the app (in every component),…
Ren
  • 437
  • 4
  • 17
0
votes
3 answers

Angular serve works in dev but fails in prod due to a form related import

I get the following error when I run a prod build on my Angular 9 app. ERROR in Can't export value FormControl in from MaterialModule in as it was neither declared nor imported! I have imported FormsModule and ReactiveForms Module in my App…
Aditya P
  • 19
  • 1
  • 9
0
votes
0 answers

Warning in budget exceeded in asset/bower_component

Getting error when doing the ng build --prod in the docker container. "Error in budget exceeded maximum for assets/bower_components"
0
votes
1 answer

angular ngbuild prod is not loading any module

Running my application in local is working fine and when I do ng build --prod everything is compiling correctly but only the first component is displayed. I can't access to any other route (neither by navigating to the paths or interacting with this…
Pablo G
  • 199
  • 12