-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Children prop type missing in HeadProvider #140
Comments
Can you create a reproduction on Codesandbox or something? I'm not able to repro... https://codesandbox.io/s/modest-matsumoto-try7wg?file=/src/App.tsx |
here's a simple Vite based app. Let me know if this will do otherwise I'll make one on Stackblitz. https://github.com/itaditya/friendly-ui/blob/main/packages/react/src/App.tsx |
I noticed the types in your CSB are of React 17 whereas mine are of React 18 "devDependencies": { "devDependencies": { |
Ah, yea I haven't tested react-head against React 18. It's possible it needs some updates. Feel free to open a PR to address any type issues with React 18. |
Can confirm I face the same issue with react18.
|
This MR should fix this issue: #146 |
This issue breaks apps with React 18. Fixes #140 Co-authored-by: Marcel Haupenthal <marcel.haupenthal@hornbach.com>
Fixed in v3.4.2 |
Getting this TS error
Fix for this-
since HeadProvider uses
children
prop, it's typescript definition should includechildren: ReactNode
The text was updated successfully, but these errors were encountered: