Questions tagged [angular-cli-v9]
46 questions
0
votes
3 answers
Corrupted file - .xml2js.DELETE/package,json in node_modules within an Angular project
Errors began after updating to Angular-Cli V10.1.0.
Initial problems I encountered:
The ng command was not working. I found that core dependencies were missing:
npm WARN @angular/fire@6.0.0 requires a peer of @angular/common@^9.0.0 but none is…

Rafael Zasas
- 891
- 8
- 27
0
votes
1 answer
error after updating Angular cli from 8 to 10
I have upgraded my Angular project from 8 to 10 but while compiling I am getting the following error.
ERROR in node_modules/ngx-loading/lib/ngx-loading.module.d.ts:4:55 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type…

Jayesh Vyas
- 1,145
- 3
- 15
- 35
0
votes
0 answers
error TS2722: Cannot invoke an object which is possibly 'undefined'
Description
IN angular 10, below is my ts-config.
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitReturns":…

Kumaresan Sd
- 1,399
- 4
- 16
- 34
0
votes
1 answer
core.js:4197 ERROR TypeError: Cannot call a class as a function
While serving the Angular application, getting below console error in Angular v10
core.js:4197 ERROR TypeError: Cannot call a class as a function
at _classCallCheck (classCallCheck.js:3)
at new Button (button.js:36)
at…

Kumaresan Sd
- 1,399
- 4
- 16
- 34
0
votes
1 answer
While importing scss file into parent class css not working properly
Below is my scss file
.mat {
@import "ej2-base/styles/material.scss";
@import "ej2-buttons/styles/material.scss";
@import "ej2-popups/styles/material.scss";
@import "ej2-splitbuttons/styles/material.scss";
}
.boot{
@import…

Kumaresan Sd
- 1,399
- 4
- 16
- 34
0
votes
1 answer
Angular 9: how to disable ios mobile browser double tap zooming
Angular 9: how to disabled ios mobile browser double tap zooming.
have tried:
touch-action: none;
-webkit-text-size-adjust:…

Kelvin
- 179
- 2
- 12
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
1 answer
Angular9: Type 'Observable>' is not assignable to type 'Observable'
In my angular application, I have a service file that makes API calls. in one of the function I have as below.
getSelectedPractitionerPermissions(id): Observable {
const url = apiUrl
this.options = this.authService.getAuthInfo();
…

indra257
- 66
- 3
- 24
- 50
0
votes
2 answers
Cannot install @angular/cli@9.1.8 after install nodejs
I've tried to install @angular/cli@9.1.8 (npm install -g @angular/cli)
Then the following error message appeared:
npm ERR! Response timeout while trying to fetch
http://registry.npmjs.org/@angular-devkit%2fschematics (over 30000ms)
npm ERR! A…

Mohamad Alhamid
- 346
- 4
- 15
0
votes
1 answer
How to create data gridview conditionally in runtime in angular?
I want to represent ODF(Optical Distribution Frame) as gridView in angular let's say we have 24 ports ODF
export class TestComponent implements OnInit {
constructor(private bbService: BackboneService) {}
ports: any[] = [];
ngOnInit(): void {
…

Daner
- 61
- 1
- 8
0
votes
0 answers
How to properly package Electron + Angular-cli 9?
My question is because I have been seeing how to do it for a long time and the first few times it worked, but lately I have had many problems.
I have seen several Blogs on how to link Electron with Angular but it always happens to me that I have…

Padron Rocha
- 3
- 3
0
votes
2 answers
Configuring angular production files after build
I have an angular 9 project which is part of an application suite installer [Wix installer]. One of the settings used by the angular app is the address of API which it fetches its data from some configurable address. I know that I can have many…

MHOOS
- 5,146
- 11
- 39
- 74
0
votes
1 answer
ng serve command requires to be run in an Angular project, but a project definition could not be found
I am trying to create nrwl workspace project using nrwl cli.
I am following the below github instruction to create the nrwl workspace project
https://github.com/onehungrymind/angular-core-workshop
But I am getting the below error
When I checked ng…

user6410893
- 53
- 3
- 9
0
votes
0 answers
copy assets from one of the package from node_modules
I have one requirement where I am installing @PDFTron package. Along with the import I have reference the path inside .ts file,for that the files should be in the assets.
I am trying to copy files from glob but its working.
Can anybody help me in…

SHANKAR KONNUR
- 3
- 3
0
votes
1 answer
Problems running an Angular 9 app in NodeJS
I have a working NodeJS server and an Angular 9 app. I'm able to test the app in development mode, it works perfectly.
But, when I build the app with ng build --prod and try to access it with NodeJS server I get several errors about file…

Andrés Marotta
- 345
- 3
- 21