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
1 answer

Error on install angular cli 7 on mac osx Mojave

I'm having error on install angular@cli on Mac Osx Mojave 10.14.5 with node version 10.15.3 and npm 6.9.0 I've also tried to remove and reinstall node and npm, and follow this article Error installing angular/cli on macOS mojave - node-pre-gyp npm…
1
vote
1 answer

The serve command required to be run in an Angular project, but a project definition could not be found

I downloaded Angular Formio project. The project is in angular 6 version. I want to completely migrate this project into angular version 7 and use this features in my project which is on angular version 7. but before I need to run the project and…
Shreyas Pednekar
  • 1,285
  • 5
  • 31
  • 53
1
vote
0 answers

In Angular, using array.map() in declaring routes causes "ERROR in Cannot read property 'loadChildren' of undefined"

I'm getting an error when building the project. ng build --prod The following Is the error showing on the console. Date: 2019-05-06T07:11:31.860Z Hash: 86bc6833bfe9e981c890 Time: 12080ms chunk {0} runtime.26209474bfa8dc87a77c.js (runtime) 1.41 kB…
supertonsky
  • 2,563
  • 6
  • 38
  • 68
1
vote
1 answer

one Component is part of the declarations of 2 modules angular

ERROR Error: Uncaught (in promise): Error: Type UserProfileComponent is part of the declarations of 2 modules: AdminLayoutModule and DemoLayoutModule! Please consider moving UserProfileComponent to a higher module that imports AdminLayoutModule and…
Tharindu Vindula
  • 1,192
  • 1
  • 8
  • 18
1
vote
0 answers

Schematic input does not validate against the Schema: {"name":"my-app"}

I have newly installed angular 7. But I am not able to create new project. I have done all which I could find from the internet but none works. I have also mentioned commands which I have used. Any help would be appreciated. Initial command $ sudo…
1
vote
2 answers

how to install latest version of primeng 7.1.0

I'm using angular 7.1.0 and present i'm using primeng 6.1.6.How to upgrade my version to primeng 7.1.0.I tried some commands like npm install primeng --save. but it is not working.and it is showing some error like this... PS…
Rajan Bosh
  • 239
  • 1
  • 3
  • 15
1
vote
1 answer

How to add ProxyConfig to build Angular7 Application

Unable to build the application along with proxy config. Its working as expected with ng serve or npm run start. I need to get that work through npm run build or ng build. Where i can deploy that dist folder to the tomcat webapps and make them to…
Madhavi
  • 474
  • 2
  • 7
  • 20
1
vote
2 answers

angular 7 cli generate each service, pipe,etc in their own directory

With early versions of the Angular Cli when I run ng g service services/MyService it created: services/my-service/my-service.service.ts services/my-service/my-service.service.spec.ts But now it…
distante
  • 6,438
  • 6
  • 48
  • 90
1
vote
1 answer

getting error after updating angular core & angular cli from v5.1 to v7.2

ive updated the angular core form 5.1 to 7.2 also angular-cli after when i try to serve my application it gives me error The serve command requires to be run in an Angular project, but a project definition could not be found. thanks Angular Cli…
1
vote
0 answers

Runtime Processing of JSON Files after Electron-Builder Packaging

I'm wanting to read in JSON files from local disk at runtime after electron-bulder packages up the Windows executable. These files already exist as part of the build itself, and I have set the following to have the JSON files places in a directory…
1
vote
0 answers

Angular.json - How do I enforce CLI to inject script tags to head instead of body?.

How do I enforce CLI to inject script tags to head instead of body?. AngularCLI 6 onwards does not eject webpack anymore. so I started exploring angular.json which basically is the replacement of angular-cli.json. In previous version( 1.6.0 ) the…
Mathew
  • 49
  • 1
  • 3
1
vote
1 answer

Angular app installing Error: Unexpected end of JSON input while parsing near '...//registry.npmjs.org/'

I am very new to Angular. I have installed the Angular by using the command: npm install -g @angular/cli When I check the version of Angular it shows: After on, I installed an Angular application by using: ng new newApp I have got an error during…
Rahmat Ali
  • 1,430
  • 2
  • 17
  • 29
1
vote
3 answers

'Package install failed error' while using ng new project

When I try ng new project I get the errors below. What am I doing wrong? npm WARN tarball tarball data for @angular/compiler@~7.1.0 (sha512-ua6Wh+c5XzxAeJT6guwAFYnwa1XzJpncppUrceRXIS9VAn9X7ApxRr45DvbVeYwXBb1iNdHWtZFm1koFVQpydA==) seems to be…
Chirag
  • 181
  • 2
  • 8
1
vote
1 answer

ng build - getting 404 for all static assets

I generated an Angular 7 app using @angular/cli, I haven't changed anything, all default settings - I just created it 20 minutes ago. When I run ng build or ng build --prod, it puts the build in: dist/ appname/ in my case that's dist/ …
user5047085
1
vote
0 answers

ng serve command failed to compile in angular 7

I have created new project with ng new and selected routing, css. It worked. Angular CLI: 7.1.1 Node: 10.14.1 Npm: 6.4.1 But on ng serve/npm start command, it failed to compiled with following error. ERROR in ./ansi-html 1:0 Module parse failed:…