angular-cli-v6 Questions

5

Solved

I already had angular project that ran in 4 version. While installing new project, unfortunately i have installed 6 version of angular cli. This throw me an error 'Your global Angular CLI version i...
Chondroma asked 5/9, 2018 at 4:4

49

Solved

After updating to Angular 6.0.1, I get the following error on ng serve: Could not find module "@angular-devkit/build-angular" from "/home/Projects/myProjectName". Error: Could n...
Definite asked 14/5, 2018 at 14:38

8

Solved

My npm version is 5.5.1 and angular cli version is 6.2.1. When I try to create a new project using the command ng new Project_name then it is creating the latest version of Angular (in my case it i...
Ozonolysis asked 14/9, 2018 at 12:3

8

Solved

This question is specific to version 6 of Angular, not earlier, since .angular-cli.json file had been replaced by angular.json file. I created a new Angular 6 project and tried, as I always did wi...
Hospice asked 24/5, 2018 at 22:35

4

I am developing an angular cli v6 project in visual studio 2017 and noticing that unwanted .js and .js.map`files are being generated for some of my typescript files in the same folder. (I don't wan...
Excitable asked 23/8, 2018 at 21:33

6

Can you tell me why I cannot use below CLI? It says Specified module does not exist. Same error for both CLI commands. Note: I have upgraded this app from ng 5 to ng 6. Is that this error due to ...
Joselow asked 20/7, 2018 at 8:1

7

Solved

I tried creating a new Angular project using ng new angular-6-boilerplate but I can't do it anymore with angular-cli latest version. I'm using terminal for windows to create my project but I got th...
Killerdiller asked 4/8, 2018 at 23:49

6

Solved

Angular CLI creates vendor.js and I don't know Why and What is the use of it?? Size of this file is about 3.2MB for a new app!! Does this file contains Angular 6 Javascript Source? Don't you thin...
Tahmosh asked 10/7, 2018 at 5:38

5

Solved

I need to create ten Angular components like comp1, comp2, comp3, comp4, ..., comp10. So I need to execute same command for ten times for each component like ng g c comp1, ng g c comp2, etc. Is t...
Tolson asked 5/7, 2018 at 6:54

8

Solved

I am getting following error when running ng serve... PS F:\Projects\RecipeApp> ng serve Invalid JSON character: "\"" at 76:13. Error: Invalid JSON character: "\"" at 76:13. at _token (F:\Proj...
Glairy asked 25/7, 2018 at 10:48

3

Solved

As the title suggests, I've generated a base library using ng generate library lib; and then I generated another library named lib2. I hope to use some base components or service from lib, so I imp...
Frivolity asked 17/7, 2018 at 6:18

2

Solved

Would someone please explain the difference between ng update in Angular 6 and npm update?
Cameron asked 1/9, 2018 at 13:45

6

I'm writing an Angular 6 Library and cannot figure out how to step into the typescript. I generated the app using: ng new mylibapp I then added the library using: ng g library @abc/cool-lib -p ab...

12

I want to use the Google Maps API with my Angular project, so I used these two commands to install npm packages: npm install @agm/core --save-dev npm install @types/googlemaps --save-dev I added...
Lamontlamontagne asked 28/6, 2018 at 13:54

5

I'm getting the following error while performing 'ng build' from my library. I'm using Angular 6 at the moment, but I believe this error is not version related. /home/rafaelvicio/desenv/my-lib/...
Daubigny asked 7/5, 2018 at 21:54

3

Solved

I've generated a component in my components folder using the angular CLI (v6.1.4) by running ng g c components/foo and have then run ng test. The test for the new component fails with the following...
Muco asked 27/9, 2018 at 11:2

5

Solved

I'm converting a library (ng-app-state) to use the angular cli, now that v6 supports libraries (yay!). After scaffolding and copying in some code, here is my first question: How/where do I add 3...
Frequently asked 5/5, 2018 at 12:44

3

Solved

I recently upgraded from Angular v5.2.4 partnered with Angular-CLI v1.7.4 to Angular v6.0.3 partnered with Angular-CLI v6.0.8. My project requires a JIT compiler due to the use of dynamic componen...
Kovacev asked 19/6, 2018 at 21:32

3

Here is the repository in Github if you want to help me to check what is happening: https://github.com/sandrocsimas/ngx-material-palette-picker I'm trying to create my first angular library. I gen...
Megavolt asked 12/7, 2018 at 19:46

3

Solved

I have two tasks, that need to run after each other: ng build <library-name> && ng serve I want to have file change watching on the <libary-name>, so I add this: ng build <l...
Spandrel asked 26/10, 2018 at 13:25

2

Solved

Sometimes when I try to launch the angular-cli command : ng build --app myApplication -w I get the following error : EBUSY: resource busy or locked, unlink 'C:\...\inline.bundle.js' Any id...

5

Solved

I have been trying to work on Navbar with collapse menu and dropdown link using Bootstrap 4.1.1 and Angular 6 but somehow Navbar is not working at all. I can see elements correctly but they don't f...
Deacon asked 7/6, 2018 at 11:30

8

Solved

I am currently work on web project using Angular 5 and I want to integrate the Firebase Cloud Messaging to send notification on app, bt I faced to a lot of problems that I tried to fix them. Right ...

4

Solved

I am trying to turn off sourcemaps for my tests in Angular 6. I know the sourcemaps switch has been removed, e.g., ng test --sourcemaps=false. I have tried modifying my tsconfig file: { "exte...
Herrmann asked 8/6, 2018 at 12:59

3

Solved

I know the difference that ng generate application <app-name> works only in angular app folder. but what are the other differences.
Cristencristi asked 12/10, 2018 at 11:25

© 2022 - 2024 — McMap. All rights reserved.