Closed muskela closed 2 years ago
Hi @muskela ,
thanks for reporting this. It is because of React 18, as the package uses React.FC
internally, which doesn't have a children
prop anymore in React 18 typings. I will fix this in an upcoming release.
In the meantime, you can simply do the following to get rid of the build error:
const { Head, NextScript } = provideComponents(this.props) as any
@all-contributors add @muskela for bug
@nibtime
I've put up a pull request to add @muskela! :tada:
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 :)