Angular ngc module error, don't know why?

I use the following module https://www.npmjs.com/package/ngx-credit-cards in my ionic application, it works when I build in development mode. However, as soon as I add the -prod flag, I get the following error:

Unexpected value of 'NgXCreditCardsModule in / Users / Maitham / Developer / Tuto / Tuto _1.0.0 / node_modules / ngx-credit-cards / build / index.js' imported module' AppModule in / Users / Maitham / Developer / Tuto / Tuto _1. 0.0 / src / app / app.module.ts'. Add @NgModule annotations.

I really don’t understand why this behaves differently in prod mode, I assume that it has something to do with the module being configured for angular 2 not angular 4? I could be completely wrong. I would really like someone to help!

Ps I followed the instructions for installation.

+4
source share

Source: https://habr.com/ru/post/1677032/


All Articles