angular9

Angular 9 Ivy - Generic type 'ɵɵFactoryDef' requires 2 type argument(s)

早过忘川 提交于 2020-07-06 05:30:41
问题 Looks like Angular Ivy not ready yet. I'm trying to build my project using ivy which is the main idea for Angular 9. Many of libraries are not compatible with this feature, one of these library is @angular/flex-layout . Material and service-worker have the same problem as well. After using ng build --prod --aot -c=production script to build my project I got: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@angular/flex-layout/core/typings/media-trigger/media-trigger.d.ts:71:18 - error TS2314:

TimeoutException: The Angular CLI process did not start listening for requests within the timeout period of 0 seconds

情到浓时终转凉″ 提交于 2020-07-01 12:05:05
问题 I'm getting this error after upgrading to angular 9. I'm using visual studio 2019, ASP .NET core with angular. Even if I create new project and update angular to 9 version, It stops working. Complete list of page response is : TimeoutException: The Angular CLI process did not start listening for requests within the timeout period of 0 seconds. Check the log output for error information. Microsoft.AspNetCore.SpaServices.Extensions.Util.TaskTimeoutExtensions.WithTimeout(Task task, TimeSpan

TimeoutException: The Angular CLI process did not start listening for requests within the timeout period of 0 seconds

两盒软妹~` 提交于 2020-07-01 12:04:48
问题 I'm getting this error after upgrading to angular 9. I'm using visual studio 2019, ASP .NET core with angular. Even if I create new project and update angular to 9 version, It stops working. Complete list of page response is : TimeoutException: The Angular CLI process did not start listening for requests within the timeout period of 0 seconds. Check the log output for error information. Microsoft.AspNetCore.SpaServices.Extensions.Util.TaskTimeoutExtensions.WithTimeout(Task task, TimeSpan

Angular 9 BaseComponent with @Injectable()

ε祈祈猫儿з 提交于 2020-06-29 03:49:16
问题 In Angular 8 I was able to create base components (classes the actual component inhert from) with an "@Injectable" attribute. The Angular 9 compiler tells me: The component YourComponent inherits its constructor from BaseComponent, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of BaseComponent's constructor. Either add a @Directive decorator to BaseComponent, or add an explicit constructor to

Tried to overwrite @angular/cdk/stepper/step-header.d.ts.__ivy_ngcc_bak with an ngcc back up file, which is disallowed

一个人想着一个人 提交于 2020-06-27 15:41:05
问题 After upgrading @angular/core and @angular/material using ng update command, the ngcc command fails with below error command used: ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points Error: > Compiling @angular/cdk/stepper : es2015 as esm2015 > Compiling @angular/cdk/drag-drop : es2015 as esm2015 > Error: Error on worker #3: Error: Tried to overwrite node_modules/@angular/cdk/stepper/step-header.d.ts.__ivy_ngcc_bak with an ngcc back up file, which is disallowed

Runtime error with Angular 9 and Ivy: Cannot read property 'id' of undefined ; Zone

别来无恙 提交于 2020-06-27 07:19:06
问题 We have an Angular 8 project with tests. We are attempting to upgrade to Angular 9 and went through all the steps in https://update.angular.io/#8.0:9.0l3. This all went smoothly, no issues. The app compiles with no errors and all of the tests run fine. We are getting this error at runtime. When we turn off Ivy, it runs fine so definitely seems related to Ivy. zone-evergreen.js:659 Unhandled Promise rejection: Cannot read property 'id' of undefined ; Zone: <root> ; Task: Promise.then ; Value:

Angular 9 Dynamically import modules with dynamic routes

China☆狼群 提交于 2020-06-26 12:15:25
问题 I want to import angular modules dynamically with variable string routes from backend service. For example my backend service sends to me this response when app is starting(using APP_INITIALIZER). { "hostname": "a-tenant", "modules": { "home": { "class": "HomeAModule", "path": "home-a.module", }, }, }, My app structure is: So i want to import a module like this const path = `./tenants/${response.hostname}/home/${response.modules.home.path}`; import(path).then(m => m[response.modules.home

Hosting multiple Angular apps on one Azure Blob Storage

别说谁变了你拦得住时间么 提交于 2020-06-25 07:17:59
问题 At work we are hosting multiple Angular JS apps on one Azure Blob Storage. There is an Azure Function which acts as a proxy and navigates to the suitable app folder and html file. Now I want to replace some of the Angular JS apps with Angular 9 apps. But the above-mentioned approach which works fine for the Angular JS apps does not work with the Angular 9 app. If I host the Angular 9 app as static website on a different storage, it works fine. But as it is not possible to host more than one

Hosting multiple Angular apps on one Azure Blob Storage

南楼画角 提交于 2020-06-25 07:17:50
问题 At work we are hosting multiple Angular JS apps on one Azure Blob Storage. There is an Azure Function which acts as a proxy and navigates to the suitable app folder and html file. Now I want to replace some of the Angular JS apps with Angular 9 apps. But the above-mentioned approach which works fine for the Angular JS apps does not work with the Angular 9 app. If I host the Angular 9 app as static website on a different storage, it works fine. But as it is not possible to host more than one

Hosting multiple Angular apps on one Azure Blob Storage

末鹿安然 提交于 2020-06-25 07:17:07
问题 At work we are hosting multiple Angular JS apps on one Azure Blob Storage. There is an Azure Function which acts as a proxy and navigates to the suitable app folder and html file. Now I want to replace some of the Angular JS apps with Angular 9 apps. But the above-mentioned approach which works fine for the Angular JS apps does not work with the Angular 9 app. If I host the Angular 9 app as static website on a different storage, it works fine. But as it is not possible to host more than one