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
4
votes
2 answers

ng upgrade command fails for upgrading cli from v7 to v8

The ng upgrade command for updating cli version from a v7 project to v8 fails. Manually trying to upgrade cli first also fails. ng update @angular/cli Your global Angular CLI version (8.0.1) is greater than your local version (7.3.9). The local…
avinashkr
  • 512
  • 1
  • 5
  • 20
4
votes
1 answer

Angular CLI - Detecting library changes to rebuild consuming application

I am developing an Angular Library and have the typical setup whereby I have my library project and then another project in which I am consuming the built library output. I want to be able to watch for library source files and rebuild my library…
mindparse
  • 6,115
  • 27
  • 90
  • 191
4
votes
1 answer

Is this possible to change script path in index.html file after build completed?

I have one angular-cli application, when i give ng build command it creates build file which has index.html file. In index.html file, scripts paths are referred like below:
Kumaresan Sd
  • 1,399
  • 4
  • 16
  • 34
3
votes
0 answers

Angular server side rendering using angular universal not working with lazy loading module

I have an existing CLI project with angular version 7. I need to set up server-side rendering for SEO and social share meta tag use. I follow the official guide given in https://angular.io/guide/universal and also take some help from a git…
Maher
  • 363
  • 2
  • 5
  • 18
3
votes
0 answers

ng test --code-coverage is considering only pollyfills file for unit test reports after upgrading to angular 7

I have updated from angular 4 to 7. When trying to generate code coverage report Code coverage is considering only polyfills.ts and none of the .ts or .spec.ts files, although the 'ng test' command executes all test cases properly and all test case…
Ish
  • 91
  • 5
3
votes
1 answer

How to build bundle.js with angular 8?

Anybody can help me? How to build only one bundle.js with angular 8 ? Lots of javascript files were created when I executed "npm run build". (e.g main.js/runtime.js/polyfills.js/...) I hope that all of them(main.js/runtime.js/polyfills.js/) can…
user11581819
  • 31
  • 1
  • 4
3
votes
1 answer

How to dynamically change request in proxy.conf.js before it's sent

I have an Angular7 application and want to send a HTTP request to an API via an Angular CLI proxy. The API then responds with a JSON object. My configurations for the proxy are done in a proxy.conf.js. A simple request with a simple target works…
steph_le
  • 51
  • 1
  • 4
3
votes
1 answer

"Workspace needs to be loaded before it is used" on ng new

This code appears to me when I trying to run ng new sarah @ sarah-Inspiron-5567 ~/Projects └─ $ ▶ ls sarah @ sarah-Inspiron-5567 ~/Projects └─ $ ▶ ng new my-angular-app Workspace needs to be loaded before it is used. Error: Workspace needs to be…
3
votes
1 answer

Angular Library is not able include third party library in the bundle

My requirement is to create libraries which have their own view and according to a User's configuration, the library will be fetched from AWS S3 Bucket and included in the final app on runtime. See this example. I am able to add the…
3
votes
2 answers

Angular/cli issue

I have a strange problem with angular/cli (WINDOWS). A year ago, I installed angular on my computer and I created a new project, all fine. I've been updating angular when a new version came out (now I'm on v7). Today I have to create a new project.…
Aw3same
  • 930
  • 4
  • 13
  • 38
3
votes
1 answer

How to specify an absolute URL for generated chunk files in angular (CLI 7)

I'm having issues as I serve my javascript files from a CDN. IN new angular cli (v7) when I enable lazy loading the generated chunk files are loaded from the root directory by default, however I want them to be served from a different url (s3 in…
arbghl
  • 358
  • 2
  • 14
3
votes
1 answer

Angular CLI upgrade from 6 to 7 not working

I tried doing an upgrade of node and the angular CLI on my mac using the instructions on the angular CLI github page, but the upgrade didn't work. After the upgrade that says it installed Angular CLI v7.1.4, if I do "ng --version", it still shows…
Brian
  • 1,675
  • 3
  • 19
  • 29
3
votes
0 answers

ENOTSUP: operation not supported on socket

I have updated my node, npm and @angular/cli on OSx Mojave. Now, when creating a new Angular app I get this message: ENOTSUP: operation not supported on socket, mkdir '/home/foo' I can't figure out what the problem seems to be.
3
votes
2 answers

angular 7 + angular cli 7+ ng test not working

angular 7 + angular cli 7.1.0 upgraded project from angular 5 to 7 and when run ng test and tsConfig added in angular.json file ` "test": { "builder": "@angular-devkit/build-angular:karma", "options": { "main":…
3
votes
1 answer

npm warn deprecated circular-json@0.5.9 while install angular 7

I'm installing angular 7 but its giving error, when i create new project. node -v v10.12.0 npm -v 6.4.1 Error Screenshot This is another issue:- 'git' is not recognized as an internal or external command
Rohit Verma
  • 3,657
  • 7
  • 37
  • 75