Closed maitham closed 7 years ago
I'm having te exact same error when AOT transpiling Angular 4.x
Same here, I think it's just a minor detail, but I just can't grasp my head around it.
same here
I ended up just pulling the methods I needed from their library into my own TS files rather than importing the library
Is this module maintained?
I did what @maitham1 suggested and it's working flawlessly :)
Merged a PR from a user so should be good now
I reopen this ticket because the bug doesn't seem to be fixed: When I run in dev mode, it works, but in prod mode, it doesn't work anymore.
[23:28:39] build prod started ... [23:28:39] clean started ... [23:28:39] clean finished in 2 ms [23:28:39] copy started ... [23:28:39] deeplinks started ... [23:28:39] deeplinks finished in 123 ms [23:28:39] ngc started ... [23:28:42] typescript error Unexpected value 'NgXCreditCardsModule in /Users/keko/Documents/pharma/node_modules/ngx-credit-cards/index.js' imported by the module 'AppModule in /Users/keko/Documents/pharma/src/app/app.module.ts'. Please add a @NgModule annotation.
I use Ionic with Angular 5
+1 I use Ionic 3 with Angular 5 same issue
Using angular 5.3 and the same error here.
angular 6 +1
Angular 6 & 7 +1
Angular 7 +1
I create a modules folder.
add app.module.ts and in the 'imports' import { NgXCreditCardsModule } from '../module/ngx-credit-cards/ngxcreditcard.module';
also remove 'fns' in the directives Payment.formatCardExpiry(element); Payment.restrictNumeric(element);
Hey there, DOes this support angular 4, as I keep getting ngc check failed:
https://stackoverflow.com/questions/43945912/angular-module-failing-ngc-check-no-idea-why