Closed g-vellis-se closed 1 year ago
Hi @g-vellis-se, thanks for reporting the issue. I have passed the reproduction steps but could not get the error you are facing with. As we can see in the error message, it is correlated with React Router. Could you please try to reproduce the issue on one of the following platforms if it is not open source:
My environment and dependencies
npm - 9.6.3
"dependencies": {
"antd": "^5.6.1",
"antd-phone-input": "^0.1.6",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
Hi @ArtyomVancyan ,
Thank you very much for the prompt reply.
The issue was caused by the following Firefox plugin: "Adjust Screen Brightness" (see: https://addons.mozilla.org/en-US/firefox/addon/adjust-screen-brightness/). Once I disabled it, everything worked as expected.
same issue
@vishwajit76, please share some code snippets. Try to disable browser add-ons one by one to find the possible cause.
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