Skip to content

Commit b5cd28f

Browse files
codegen-sh[bot]Jake Ruesink
andcommitted
Remove flag icons CSS import to fix build error
- Remove import for 'country-flag-icons/css/flag-icons.min.css' that was causing the CommonJS resolver error - Simplify implementation to not rely on flag icons Co-authored-by: Jake Ruesink <jake@lambdacurry.com>
1 parent 6ed8fea commit b5cd28f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/components/src/ui/phone-input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { getCountries, getCountryCallingCode } from 'react-phone-number-input/in
33
import { parsePhoneNumber, AsYouType, isValidPhoneNumber } from 'libphonenumber-js';
44
import { cn } from './utils';
55

6-
// Import country flags
7-
import 'country-flag-icons/css/flag-icons.min.css';
6+
// Remove flag icons import that was causing the error
7+
// import 'country-flag-icons/css/flag-icons.min.css';
88

99
export interface PhoneInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
1010
value?: string;

0 commit comments

Comments
 (0)