1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Installing ngx-lottie to Angular 17 not working

Discussão em 'Angular' iniciado por mitokki, Setembro 10, 2024.

  1. mitokki

    mitokki Guest

    I've been trying to use ngx-lottie at my Angular 17 app.

    I've tried this

    import { LottieModule } from 'ngx-lottie';

    export function playerFactory() {
    return import('lottie-web');
    }

    @NgModule({
    declarations: ['...'],
    imports: [
    LottieModule.forRoot({ player: playerFactory })
    ]})


    But it's says "LottieModule" doesn't exist.

    Github Link I've checked also the documentation at their github account but it looks like they don't support NgModule now because the examples are for stand alone. Correct me if I am wrong or is there any other way to use this at NgModule?

    Thank you.

    Continue reading...

Compartilhe esta Página