Questions tagged as 'angular-cli'

1
answer

How to know the Angular version installed by Angular CLI?

I would like to know how can I find out which version of Angular I'm using?     
asked by 23.11.2017 / 15:59
1
answer

Error trying to initialize the Angular project (To disable this warning use "ng config -g cli.warnings.versionMismatch false")

I've taken a project I'm studying for a course. I installed the dependencies of the node with the command npm install and everything went well. Initializing the webPack with the command ng serve shows this error:    Your global...
asked by 17.05.2018 / 16:56
1
answer

Angular Command 6 CLI to create a component in a specific folder

Is there any way to create a component in the Angular 6 CLI specifying which folder it should be in? I searched the net and found ng g c nome-componente --module=app but this is just to specify that it will stay in app I tried to t...
asked by 18.10.2018 / 00:50
1
answer

Angular-cli ng generate library does not work

I have a project in version 5 of Angular, which generates a library using the rollup and works correctly. However I'm migrating from version 5 to version 6 of angular and wanted to use angular-cli, which already generates a library in the same p...
asked by 13.06.2018 / 15:23
1
answer

How to leave objects side-by-side coming from * ngFor?

I have this situation: <div class="row"> <div class="col-lg-12"> <!-- 1 Primeiro cartão, 1° objeto --> <div class="card borda-card" *ngFor="let evento of eventos"> <a href="/assets/img/2.jpg" style="b...
asked by 04.05.2018 / 16:25
0
answers

Angular Compiler was detected but it was an instance of the wrong class

I was currently working on a project, consuming an api rest from the angular, but in the course, I'm encountering an error that is returning me that I have 2 webpack packages inside my application. I tried to find some solution on the case, b...
asked by 10.09.2018 / 19:22
1
answer

Problem creating project with Angular CLI

A nice personal day, I'm starting my studies in Angular 2, I use docker to manage my containers. At the beginning I'm already having problems, the creation of the project has been presenting errors. When you run the command: ng new pr...
asked by 06.08.2018 / 16:36
0
answers

Angular CLI - ng serve can not read property 'config' of null

Uploaded an angled pro git project and downloaded the zip from another machine I give npm install in the folder and then ng it works (I'm inside the project folder) The .lang-cli.json file is in root (I did not have to add, came from git)...
asked by 12.06.2018 / 20:22
1
answer

Angular5 - Error: Local workspace file ('angular.json') could not be found

This error happens when I start the application:    Local workspace file ('angular.json') could not be found. Error: Local   workspace file ('angular.json') could not be found.       at WorkspaceLoader._getProjectWorkspaceFilePath (/usr/lib/n...
asked by 09.05.2018 / 16:54
2
answers

How to implement Bootstrap 4 in the Angular CLI

I am not able to use Bootstrap with the Angular CLI. I'm using ng-bootstrap and I'm following all the recommendations of the site, but without success, does anyone know how to use it?    install via npm: npm install --save @ng-bootstra...
asked by 06.04.2018 / 22:35