Giter Club home page Giter Club logo

Comments (14)

DexterIA avatar DexterIA commented on June 26, 2024 1

@gund Yes, sure
Built and check in storybook, works great!

from ng-dynamic-component.

DexterIA avatar DexterIA commented on June 26, 2024 1

@gund
Yes, I understand.
I will wait update to Angular 13.

This crutch is not needed anymore

from ng-dynamic-component.

gund avatar gund commented on June 26, 2024

Yes I think at the time when v9 was release there probably was no rxjs v7 yet.

But you should have no problem using rxjs v7 even with v9, just disable NPM from checking peer dependencies (either via --legacy-peer-deps or --force) and install rxjs v7 manually.
Ideally you could just update the lib to v10 which includes rxjs v7 (compatible with Angular v12+).

But I'm not planning on maintaining previous major versions which means anything below v10 does not get any updates as this will increase the burden of maintenance of the library.

from ng-dynamic-component.

DexterIA avatar DexterIA commented on June 26, 2024

Ok, I understand you.

Unfortunately, v10 does not work with angular 12. And I can't update up to 13, because we need support IE =(

from ng-dynamic-component.

DexterIA avatar DexterIA commented on June 26, 2024

@gund does v10 could work with angular 12? I try and got error in runtime, when create component.
Here https://github.com/gund/ng-dynamic-component/blob/v10.2.0-next.1/projects/ng-dynamic-component/src/lib/dynamic.component.ts#L67

Angular 12 have another signature of this method.

from ng-dynamic-component.

gund avatar gund commented on June 26, 2024

Oh yes, I forgot about that change, I will need to add backwards compatibility for that piece of code.
I'm going to release it under next tag so you could check it if it works or something else need backwards compatibility fixes.

from ng-dynamic-component.

DexterIA avatar DexterIA commented on June 26, 2024

Great! Thank you very much

from ng-dynamic-component.

gund avatar gund commented on June 26, 2024

@DexterIA could you please give a try to 10.2.0-next.2 and see if it will work with Angular v12?

from ng-dynamic-component.

gund avatar gund commented on June 26, 2024

This has been released on 10.2.0

from ng-dynamic-component.

DexterIA avatar DexterIA commented on June 26, 2024

@gund
Something goes wrong...

I've got error when build app, after update to 10.2.0

TypeError: Cannot create property 'message' on string '.\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 });
> 28 | /** @nocollapse */ ComponentOutletInjectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.1", type: ComponentOutletInjectorDirective, selector: "[ngComponentOutlet]", providers: [
     |                                                            ^
  29 |         {
  30 |             provide: DynamicComponentInjectorToken,
  31 |             useExisting: ComponentOutletInjectorDirective,'

Look's like it work only in Angular 14

Interesting, storybook build completes without errors and components work's fine.

from ng-dynamic-component.

gund avatar gund commented on June 26, 2024

Hmm that looks strange, this seems like a specific version check during a build time as there is no hard dependency on Angular v14 in the library.
Not really sure how to resolve this issue.

@DexterIA could you please paste the details of ng version output here for debugging info?

from ng-dynamic-component.

DexterIA avatar DexterIA commented on June 26, 2024
Angular CLI: 12.2.16                                             
Node: 16.14.2 (Unsupported)                                      
Package Manager: npm 8.5.0                                       
OS: win32 x64                                                    
                                                                 
Angular: 12.2.16                                                 
... animations, cli, common, compiler, compiler-cli, core, forms 
... platform-browser, platform-browser-dynamic, router, upgrade  
                                                                 
Package                         Version                          
---------------------------------------------------------        
@angular-devkit/architect       0.1400.2                         
@angular-devkit/build-angular   12.2.16                          
@angular-devkit/core            12.2.16                          
@angular-devkit/schematics      14.0.2
@angular/cdk                    12.2.13
@schematics/angular             12.2.16
rxjs                            7.5.5
typescript                      4.3.5
webpack                         5.50.0

Warning: The current version of Node (16.14.2) is not supported by Angular.

from ng-dynamic-component.

gund avatar gund commented on June 26, 2024

Ok, from the response from Angular team it is not supported to use library compiled with newer angular in the app that is using older angular version.

This basically means that you either need to upgrade your app to angular v14 or disable peer dependencies check and keep using v9.

from ng-dynamic-component.

gund avatar gund commented on June 26, 2024

Yep, I just removed it from the latest release, thanks 😊

from ng-dynamic-component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.