medipass / react-payment-inputs

A React Hook & Container to help with payment card input fields.
https://medipass.github.io/react-payment-inputs
401 stars 63 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 4 years ago

same issue

antongorodezkiy commented 4 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 2 years ago

same here