-
Notifications
You must be signed in to change notification settings - Fork 20
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
Type error if Head contains children #46
Labels
bug
Something isn't working
Comments
Hi @muskela , thanks for reporting this. It is because of React 18, as the package uses In the meantime, you can simply do the following to get rid of the build error: const { Head, NextScript } = provideComponents(this.props) as any |
nibtime
added a commit
that referenced
this issue
Jul 15, 2022
fixes #46. In React 18 typings, FC doesn't have auto children anymore
nibtime
added a commit
that referenced
this issue
Jul 15, 2022
fixes #46. In React 18 typings, FC doesn't have auto children anymore
nibtime
added a commit
that referenced
this issue
Jul 15, 2022
fixes #46. In React 18 typings, FC doesn't have auto children anymore
nibtime
added a commit
that referenced
this issue
Jul 15, 2022
…2.2.2 And set children and return type to `any` for `provideComponents`. For some weird type reason keeps failing on Vercel , but not in GitPod. fixes #46 (and drove me nuts)
nibtime
added a commit
that referenced
this issue
Jul 24, 2022
…2.2.2 And set children and return type to `any` for `provideComponents`. For some weird type reason keeps failing on Vercel , but not in GitPod. fixes #46 (and drove me nuts)
Merged
@all-contributors add @muskela for bug |
I've put up a pull request to add @muskela! 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm trying to add this package to a project. But there seems to be an issue, with what I assume is React 18 typings.
There is a Typescript error whenever I put any element inside of the Head Component:
I will get there error:
I'm using React 18.2.0 and Next 12.2.2
I do hope it's something easy to fix - thanks for all your work :)
The text was updated successfully, but these errors were encountered: