Questions tagged [angular-cli-v8]

Angular CLI v8 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:

59 questions
1
vote
1 answer

Angular Internel Error when building using `ng build --prod'

I'm getting an error while building angular app using --prod flag. I'm unable to get to any point since stack show error at lower compiler level. What is causing the errors? When I run ng build without --prod flag, it would compile without any…
Ahmad Raza
  • 129
  • 2
  • 13
1
vote
2 answers

Angular: Localization in to multiple languages

I have an Angular 6 application that has already been built. Now we are planning to support it in to multiple languages. I am able to create multiple xlf files and get the target strings replaced with the language. My locale file has three files…
indra257
  • 66
  • 3
  • 24
  • 50
1
vote
1 answer

ng build --prod throwing Property errors on HTML

I am trying to build the production version of my Angular 8 app, but I'm constantly getting Property '*' does not exist on type '*' errors. Executed command: ng build --prod="true" --verbose=true Received errors: ERROR in…
Riverman
  • 503
  • 6
  • 17
1
vote
0 answers

Angular cli karma can't use json file

Am using Jasmine karma in angular-cli project. When am trying to use a json file inside it throws an error. import { TestBed } from '@angular/core/testing'; describe('xxxService', () => { let service: xxxService let attributeData: any =…
sibi
  • 635
  • 3
  • 8
  • 26
0
votes
0 answers

Adding proxy config runs minified code on development server (ng serve)

I am using proxy config setup in my angular 8 application. I am using below command to start the server, ng serve --port 4300 --proxy-config src/proxy.conf.json After compiling successfully, i am getting below output 「wdm」: Compiled…
Suraj Gupta
  • 437
  • 8
  • 19
0
votes
1 answer

configuring custom path for ngcc in angular project

I am having a requirement where node_modules required for a project are already installed and stored somewhere. And we are running multiple instances of the angular project each inside a separate docker container and we mount the node_modules folder…
0
votes
1 answer

Office Word Addin with Angular CLI 8.2 - Getting Unhandled Navigation Error

I am trying to run a simple application in Office word add-in that I have built using Angular CLI 8.2. This application has a home page with a link. That link should route to another component. Routing works in Edge and IE 11 but doesn't work in…
Imran Khan
  • 117
  • 2
  • 11
0
votes
0 answers

Compiling TypeScript sources through ngc TypeError: Cannot read property 'directoryExists' of undefined

Updated from Angular CLI 1.7.0 to Angular 8. Got everything working locally but failing on Build definition in 'npm packager' step. Initially got error on missing tstickle and after adding it to package.json, "tsickle":…
Anuj Vohra
  • 11
  • 1
  • 3
0
votes
2 answers

forRoot in Angular libraries not workig , but in appmodule its working as expected

When i import a module in appmodule and call forRoot everything is working no Injection problems. But when i remove from appmodule and add in a lazyloaded module calling forRoot not working as expected. Getting NullInjectorError: No provider for…
0
votes
3 answers

How to create Angular 8 project using Angular CLI 9

I'm using Angular CLI 9.1.1 but need to create a project with Angular 8. I also have other projects using Angular 9, so I don't want to install Angular 8 CLI globally. Is there any option to create an Angular 8 project using Angular CLI 9?
Ever Dev
  • 1,882
  • 2
  • 14
  • 34
0
votes
2 answers

Environment issue in Angular when try to build

When I try to build an Angular project I have this issue : File '/angular/src/environments/environment.ts' is not a module I import the file like this : import { environment } from '../../environments/environment'; My tsconfig.json : { …
GPiter
  • 779
  • 1
  • 11
  • 24
0
votes
1 answer

Angular Formly Forms - removing add/remove buttons from array type

I've got an issue trying to remove/disable buttons from a customized array component I use with Formly Forms when generating dynamic forms using a JSON schema (draft 7). I've tried various things to solve this but nothing seems to work. What I want…
c00ki3s
  • 466
  • 9
  • 19
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
1 answer

Error: EPERM: operation not permitted in Bitbucket pipeline

While building ng build I am getting this error in Bitbucket. I am using Firebase as my backend. What am I doing wrong? EPERM: operation not permitted, lchown '/opt/atlassian/pipelines/agent/build/node_modules/.cache/angular-build-dl/tmp' Error:…
0
votes
0 answers

Error when a Angular 8 Library is used as a npm package

I have built a angular 8 library that compiles perfectly and I can pack it with npm pack command to use it in other project as a npm package. When I use that library in other project I can serve it or build it in JIT mode without a problem. The…