angular11 Questions
3
Somehow the Angular (v11.0.4) language service in VSCode does not work anymore. I get the following error message.:
[Info - 17:52:04] Angular language server process ID: 147359
[Info - 17:52:04] Us...
Opah asked 12/1, 2021 at 17:7
3
Solved
I am trying to figure out how to use useFactory as an async function in Angular 11. Right now I have this:
import { ApolloClientOptions } from 'apollo-client';
import { FirebaseService } from './fi...
Evidentiary asked 8/2, 2021 at 3:14
2
Solved
Using Angular 11 with Typescript 4 in Strict Mode I have:
export class ContactComponent implements OnInit {
form: FormGroup;
constructor(private formBuilder: FormBuilder) { }
ngOnInit() {
...
Myogenic asked 12/3, 2021 at 16:45
6
Solved
Why does the angular compiler can't find GeolocationPosition and GeolocationPositionError? VSC doesn't give an error and only during compiling it gives me an error.
Error: src/app/modules/shared/se...
Apologete asked 27/1, 2021 at 9:16
7
I have upgraded my Angular version from 5.2 to 11.2
And after upgrading Angular & all library when i start server (ng serve) getting Allocation failed - JavaScript heap out of memory
It also g...
Memling asked 29/5, 2021 at 7:15
3
I am unable to understand what went wrong with my code, I imported the modules and still I am getting this error " Export of name 'matAutocomplete' not found"
Note: I restarted my IDE com...
12
Solved
Trying to build angular11 app in a system behind proxy. When running "ng build --prod" I get this error:
Inlining of fonts failed. An error has occurred while retrieving
https://fonts.go...
6
Solved
I'm working in an Angular 11 project. A lot of the imports in this project are using a relative path or an absolute path.
I have ESLint set-up for this project, I want to prevent relative import pa...
8
Recently upgrading my app to Angular 11. Jest has been set up as the default testing framework. Running npm test results in the following error:
● Test suite failed to run
TypeError: Jest: a tran...
2
Solved
I used ResizeObserver in my component and its works fine.
But get such error when running ut:
ReferenceError: ResizeObserver is not defined
133 | });
134 |
> 135 | this.resizeObserver = ne...
Antecedence asked 6/1, 2021 at 7:22
3
client:159 src/app/analytics-page/analytics-page.component.ts:211:26 - error TS2345: Argument of type '{ type: string; options: { responsive: boolean; }; data: { labels: string[]; datasets: { label...
Dipeptide asked 12/4, 2021 at 12:22
4
I installed agm/core using npm like this:
npm install @agm/core
The following warnings were displayed:
npm WARN @agm/[email protected] requires a peer of @angular/common@^9.1.0 || ^10.0.0 but...
Prosthetics asked 8/2, 2021 at 4:52
6
Solved
I am working with Angular 11 and trying to use short imports like import {smthg} from '@common' instead of import {smthg} from '../../../common'
But I always get errors in IDEA: TS2307: Cannot find...
Ayeaye asked 22/1, 2021 at 14:3
3
Solved
I'm using the angular cli config fileReplacements in angular.json file to replace a folder content, like this:
{
"projects": {
"myProject": {
"architect": {
"...
Photoelectric asked 13/12, 2020 at 20:4
5
Hi after I ran "ng update @angular/core@12 @angular/cli@12" to upgrade from 11 to 12, and then "ng serve app" I keep getting the following error:
"Unknown error from PostCS...
2
Solved
I had an asp.net core app on Angular 10.2.4, decided to upgrade to 11.
Ran: ng update @angular/core@11 @angular/cli@11 it failed complaining of devkit. Uninstalled devkit, upgraded angular to 11.2....
3
Solved
Originally, I had a simple extension to the DatePipe to transform a date value from our standard (YYYYMMDD format) so that the DatePipe in Angular could then use it.
export class SlsDatePipe extend...
6
Solved
Hi I am new to Angular and currently I am working with Angular 11 project and there I have to upload a CSV file and extract the records of the file in client side and save them in the database via ...
Deoxidize asked 1/2, 2021 at 7:39
3
Solved
I am trying to implement the micro-frontend concept in angular using webpack5 module federation by following this example Module federation with angular, but i am facing this error
I tried the sol...
Drier asked 25/11, 2020 at 12:38
2
I am working on an application I have made deployment of my application now the issue I am facing is some of my prod files taking too much time load here is the screenshot from my network tab. I ha...
8
The issue
I am trying to upgrade from Angular V9 to V11 and I'm struggling quite a lot with the the following errors
Namespace node_module/@angular/core/core has no exported member ɵɵFactoryDeclara...
Capricorn asked 7/4, 2021 at 14:0
5
I'm using angular 11.2 in my machine and I want to run a angular 12 project. After clone from git, I ran below commands.
npm install
ng serve
But I got below errors and can't run the project.
I r...
Kraken asked 5/5, 2021 at 17:31
1
Solved
So we have a monorepo that has two different projects using Angular. We also have a build pipeline to automate the integration process. The problem I'm running into is that ngcc does not support pa...
Beamon asked 9/11, 2021 at 20:29
2
Solved
Using this example in my code: https://stackblitz.com/edit/angular-rskaug?file=src%2Fapp%2Fapp.component.html
Html in component
<td><input type="checkbox" (change)="onChange...
Ceramal asked 16/8, 2021 at 7:23
2
Solved
Prior to upgrading to Angular 11, I ran my unit tests with code coverage via the following command:
ng test --project my-app --code-coverage true
When I upgraded my project to Angular 11, I was st...
Differentiate asked 12/11, 2020 at 19:12
1 Next >
© 2022 - 2024 — McMap. All rights reserved.