medipass / react-payment-inputs

A React Hook & Container to help with payment card input fields.
https://medipass.github.io/react-payment-inputs
338 stars 59 forks source link

Can't use without styled-components #33

Open romaia opened 4 years ago

romaia commented 4 years ago

Even though I am using only usePaymentInputs, I can't seem to use it without needing to install styled-components.

Module not found: Can't resolve 'styled-components' in '/home/romaia/dev/stoq/contactless-payment/node_modules/react-payment-inputs/es'

cmaycumber commented 4 years ago

I'm having the same issue

ZelvaJan commented 4 years ago

Same here

yasserelsaid commented 3 years ago

same issue

antongorodezkiy commented 3 years ago

@romaia Maybe you're importing usePaymentInputs() like this:

import { usePaymentInputs } from 'react-payment-inputs';

if so, then for me the following import worked:

import usePaymentInputs from 'react-payment-inputs/es/usePaymentInputs';
cellezam commented 1 year ago

same here