-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug description
I have installed antd-phone-input in a clean vite project (vite v.4.3.2) using ant design v.5.5.2 (i.e. the latest version), but I keep getting an error when accessing the page with the phone-input-component via Firefox (v. 114.0 64-bit, i.e. the latest).
Notably, it works fine in all other browsers I have tested it (Chrome and Safari).
To use the component, I used the following code (as suggested in the documention):
import FormItem from "antd/es/form/FormItem";
import PhoneInput from "antd-phone-input";
The image below, shows the error I keep getting:

Any ideas?
Thanks
Reproduction steps
- Create a vite project (npm create vite using React and TypeScript)
- Install ther latest version of ant design (npm i antd)
- Go into any .tsx file (e.g. App.tsx) and
3.1 Introduce the following three import statements: import FormItem from "antd/es/form/FormItem"; import PhoneInput from "antd-phone-input"; import {Form} from "antd";
3.2 Try to use the PhoneInput component, i.e.
- Navigate to the page which the PhoneInput component was added in, using Firefox.
Screenshots
Browsers
Firefox
OS
Mac
vishwajit76ArtyomVancyan
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done