Closed sotjdisc closed 2 years ago
Looks like the latest version is not compatible with Angular v13...
You need to pin the lib version down to 10.1.x as starting from 10.2.x it's compiled with Angular v14.
The problem is that 10.1.0 is also somehow corrupt and needs Angular 14...
I am using 10.1.1-no-barrels.1 for now, which is fine with Angular 13.
Yeah that's probably the reason, up until v14 there was an issue with the barrel exports so you are using correct version. I will update the docs about compatibility with Angular v13 accordingly.
:tada: This issue has been resolved in version 10.3.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
There used to be a compatibility table in the Readme. I was just wondering why that was dropped? If you have a list, I can open a PR for it.
@willyboy it's still there just hidden inside of a collapsible element:
./node_modules/ng-dynamic-component/fesm2015/ng-dynamic-component.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js): TypeError: Cannot create property 'message' on string 'Y:\inventory\inventory-web-ui\node_modules\ng-dynamic-component\fesm2015\ng-dynamic-component.mjs: This application depends upon a library published using Angular version 14.0.1, which requires Angular version 14.0.0 or newer to work correctly. Consider upgrading your application to use a more recent version of Angular. 26 | } 27 | /* @nocollapse / ComponentOutletInjectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: ComponentOutletInjectorDirective, deps: [{ token: i1.NgComponentOutlet, host: true }], target: i0.ɵɵFactoryTarget.Directive });
Error: node_modules/ng-dynamic-component/lib/component-injector/component-outlet-injector.directive.d.ts:10:18 - error TS2314: Generic type 'ɵɵDirectiveDeclaration' requires 6 type argument(s).
10 static ɵdir: i0.ɵɵDirectiveDeclaration<ComponentOutletInjectorDirective, "[ngComponentOutlet]", ["ndcComponentOutletInjector"], {}, {}, never, never, false>;
Error: node_modules/ng-dynamic-component/lib/dynamic-directives/dynamic-directives.directive.d.ts:59:18 - error TS2314: Generic type 'ɵɵDirectiveDeclaration' requires 6 type argument(s).
59 static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicDirectivesDirective, "[ndcDynamicDirectives],[ngComponentOutletNdcDynamicDirectives]", never, { "ndcDynamicDirectives": "ndcDynamicDirectives"; "ngComponentOutletNdcDynamicDirectives": "ngComponentOutletNdcDynamicDirectives"; }, { "ndcDynamicDirectivesCreated": "ndcDynamicDirectivesCreated"; }, never, never, false>;
Error: node_modules/ng-dynamic-component/lib/dynamic.component.d.ts:18:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).
18 static ɵcmp: i0.ɵɵComponentDeclaration<DynamicComponent, "ndc-dynamic", never, { "ndcDynamicComponent": "ndcDynamicComponent"; "ndcDynamicInjector": "ndcDynamicInjector"; "ndcDynamicProviders": "ndcDynamicProviders"; "ndcDynamicContent": "ndcDynamicContent"; }, { "ndcDynamicCreated": "ndcDynamicCreated"; }, never, never, false>;