I am trying to use the phone mark with React, but I am getting the error
Please include phone-type-formatter.{country}.js lib.
This is how I've attempted:
import CleavePhone from "cleave.js/src/addons/phone-type-formatter.i18n"; // and also
import CleavePhone from "cleave.js/dist/addons/cleave-phone.i18n"; // and BOTH
...
<CleavePhone
name={name}
value={value}
className={cx("form-control", className)}
placeholder={placeholder}
options={options}
onChange={onChange}
/>
...
I've also tried requiring it, but no matter what I do the error persists.
I am using react-react-app
library. How to solve this?