-
Notifications
You must be signed in to change notification settings - Fork 172
In TypeScript-based React, 'HelmetProvider' cannot be used as a JSX component. related error #188
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
Comments
Hi, you might have an outdated |
@meassinal Did you make sure there were no other versions of Of course, it could be another issue that's not related to this... |
@kamiyo Thank you for your reply. I decided to use https://github.com/justinmahar/react-super-seo instead as it doesn't have any conflict in my project. Let's see in the future if I happen to come back to |
Hey, any update on this? index.tsx
I am using following;- Any solutions so far? |
For those who is facing same issue, here the solution:-
After then run |
TS types will be more stable on next release, which is imminent #197 |
I am using typescript based react based on vite.
However,
'HelmetProvider' cannot be used as a JSX component.
error occurs when calling any component of react-helmet-async.Using @types/react-helmet does not solve this error.
I referred to nfl/react-helmet#646 as well, but couldn't solve it.
index.tsx
The text was updated successfully, but these errors were encountered: