zenkkor / ngx-credit-cards

A Credit Card Directives and Form Validators package for Angular X (2+)
MIT License
30 stars 36 forks source link

Cannot find module 'ngx-credit-cards' #1

Closed aliminurudeen closed 7 years ago

aliminurudeen commented 7 years ago

Good day, am trying to use ngx-credit-cards in my project and am getting this error "Cannot find module 'ngx-credit-cards'"

nichovski commented 7 years ago

+1

juddfranklin1 commented 7 years ago

+1

I think that the issue may be that your .ts is not part of the npm project.

juddfranklin1 commented 7 years ago

Ultimately, I got past this issue by manually adding the .ts content (directives folder, validators folder, index.ts, and ngxcreditcard.module.ts) to the root directory of the node_modules/ngx-credit-cards directory.

Now, I get messages saying that the directives and validator cannot find the module 'payment' which I installed as a node package, so I'm rooting around for a solution once more.

zenkkor commented 7 years ago

Guys, really sorry. I just saw this today. I'll take a look at it ASAP and post a fix. It probably has something to do with the way it's bundled for the AOT version.

elliottsaray commented 7 years ago

@zenkkor any update?

zenkkor commented 7 years ago

@elliottsaray sorry, I had zero time for this because I was booked full time. If anyone else is willing to fix this i'll gladly accept a PR.

paulocoliver commented 7 years ago

I downloaded the project and build again worked for me https://www.npmjs.com/package/gc-ngx-credit-cards