Maxime Lafarie
Jul 21, 2017 · 1 min read

I have an error with my npm module saying that “NgxSmartModalModule is not an NgModule”.

There’s a lot of similar issues across the web (GitHub, etc…) but nothing worked for me.

Do you think it could come from the rollup build or anything else ?

I opened a StackOverflow topic here : https://stackoverflow.com/questions/45218667/angular-error-in-ngxsmartmodalmodule-is-not-an-ngmodule

As I explained in the above StackOverflow topic, the demo works well with uncompiled lib code, but when I build the module and sending it to npm, if you add it to one of your project, you’ll ran into this error when ng serve or ng build --prod.

)
    Maxime Lafarie

    Written by

    Angular front-end developer in charge of OSS at @BiiGDigital. Rugby second row since 2k8.