Skip to content

Commit 052dd09

Browse files
authored
docs: note about client component requirement (#86)
1 parent 4b42986 commit 052dd09

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,24 @@ const FormSchema = z.object({
105105
});
106106
```
107107

108+
## Known Issues
109+
110+
### Server-Side Rendering (SSR)
111+
112+
The `PhoneInput` component must be used in a **Client Component**. If you see this error:
113+
114+
```
115+
TypeError: Super expression must either be null or a function
116+
```
117+
118+
Add `"use client"` to the top of your file:
119+
120+
```tsx
121+
"use client";
122+
```
123+
124+
This is required because `react-phone-number-input` uses browser APIs that aren't available during SSR.
125+
108126
## Documentation
109127

110128
You can find out more about the API and implementation in the

0 commit comments

Comments
 (0)