Questions tagged [angular-cli-v7]

Usage This tag is intended for questions which ask about angular-cli Please take note that you should use the angular-cli tag for Angular CLI related questions.

The Angular CLI is a tool to initialize, develop, scaffold and maintain Angular applications

Usage:

  • This tag is intended for questions which ask about Angular CLI issues or usage.
  • Angular related questions should use the angular tag.

Asking a question

  • Mention the versions of Angular and Angular CLI that you're using.
  • Reduce your issue to a small example Post a reduced working code on stackblitz.com.

  • If there's a bug (or some unintentional behavior), try to troubleshoot the problem. (If it's a bug report, please create a new issue at Angular CLI's Github repository instead.)

Learn more

To learn more about Angular CLI, visit the following resources to help you get started:

95 questions
1
vote
0 answers

Angular CLI 7: How can I use random port with e2e?

Background I'm running e2e-tests using a selenium server in CI, which results in following addition to my protractor.conf.js: directConnect: false, seleniumAddress: '...', Issue When upgrading Angular CLI from 1.7.2 to 7.0.6 I ran into this…
ChrisJ
  • 21
  • 5
1
vote
1 answer

Angular 7 + Angular Material, styleUrls doesn't work as one would expect

I have an angular 5 app and couple a days ago I have updated it to the latest v7. Of course, I have updated Angular Material + RxJS. After that, I see a lot of UI issues. For example, for v5 I have used styleUrls for my component's and next CSS for…
Taras Kovalenko
  • 2,323
  • 3
  • 24
  • 49
0
votes
1 answer

errors when running npm install -g @angular/cli

How to solve the issue please help. (is that about very slow internet connection if that was the case than what's the min requirement?) C:\Windows\system32> node -v v12.16.2 C:\Windows\system32> npm -v 6.14.4 …
0
votes
0 answers

Angular sharing modules between lazy loaded modules - cli creates unwanted chunks

Given 2 lazy loaded modules tableau-de-bord and import. These 2 modules are both importing a common shared-module which is actually shared between all the modules of the app. My problem is, when I run ng serve or ng build, I should have let's say 2…
Buu97
  • 158
  • 2
  • 15
0
votes
2 answers

Why do we ever need to set "--aot false" in angular prod build?

I know that "ahead of time compilation" provides compilation at the build time. There are also bunch of other advantages of --aot such as the application is pre-compiled so there is no such a wait template binding errors will be known at build…
curiousBoy
  • 6,334
  • 5
  • 48
  • 56
0
votes
0 answers

How to read filenames from internal folder structure Angular 7?

I have a requirement something like I have languages json file such as da-DA.json de-DE.json in my assets folder inside i18n directory in which the language mapping is written. Now I want a dropdown where I can have my users select these…
Karthik Saxena
  • 768
  • 3
  • 9
  • 25
0
votes
1 answer

Get all the data of the table using jspdf and autotable

I want to get all the data from my table, the problem is that I only get the data that is in the first page (because of the pagination). I have 200 register on my table, but the pagination only shows me 100 register, how could I get the other 100…
0
votes
1 answer

What are the options set by default when we run ng build --prod

When I build my angular application with ng build --prod it creates a build for production environment with build optimization, tree-shaking etc.. If I want to make the same kind of build for development environment, what options needs to be passed…
JPS
  • 2,730
  • 5
  • 32
  • 54
0
votes
1 answer

Angular 7 Service Returns Undefined from restful API

I'm trying to return a list of tasks from and Angular service that gets the data from a restful .NET API. The API returns the proper data, but when console.log the result from the subscribed to function it is only undefined. Please help! Here is…
tks2n
  • 99
  • 1
  • 7
0
votes
1 answer

Angular 7: How to use fileReplacement globaly

I`m using Angular 7 and i would like to know if exist any way to replace files no matter the enviroment using fileReplacement. Something like this: The problem tight now is that we are using the standard approach and we are forcing to replicate the…
ubaldisney
  • 66
  • 1
  • 10
0
votes
1 answer

Angular change detection not detecting changes only in prod

I've got a strange problem that I hope is just a simple fix on my end. The change detection in Angular is not working only in production. I've built a fairly complex app using Angular 7 and ngrx as state management. There are 2 main modules that are…
s.Lawrenz
  • 302
  • 3
  • 17
0
votes
1 answer

Angular project with external lib doesn't compile in AOT mode using angular-cli

I started a fresh new project, generated with angular-cli 8.1.2. I want to have a shared library for several microservices (apps). This library should NOT be included in the applications folder, it's a different project, has its own git. If I try…
C. Gäking
  • 163
  • 1
  • 9
0
votes
0 answers

Angular CLI "ng serve" fails after upgrade to 7.3.8

I am new to Angular CLI. My background is in C# ASP.NET. I recently spun up a ASP.NET Core app with Angular CLI through the project wizard of Visual Studio. All that I needed to do to get things working on http://localhost:4200 was to run npm…
AKirby50
  • 174
  • 1
  • 13
0
votes
1 answer

how to convert angular-cli.json to angular.json

when running "ng test" angular cli throws error "The test command requires to be run in an Angular project, but a project definition could not be found." npm install @angular/cli ng test wants to convert angular-cli.json to angular.json
Akila
  • 43
  • 1
  • 5
0
votes
1 answer

How to fix Http-Server npm command issue?

I've tried to deploy the angular application in my local, I've done the npm-build and got dist, then i tried to execute the http-server command i receive the below error. changed the port number, cleared the cache, closed and opened the cmd,…
Cegone
  • 489
  • 1
  • 9
  • 23