NextFunctionComponent type is removed in the latest version?
Hey @saeedghasemi72, this was from @types/next we don't have this type in our codebase. You can use https://github.com/zeit/next.js/blob/canary/packages/next-server/lib/utils.ts#L11 instead.
This is a common use case from version 8. I think that the upgrade guide https://github.com/zeit/next.js/blob/canary/UPGRADING.md should be amended to reflect the changes that need to be made.
For people looking for replacing NextFunctionComponent, you can replace it by:
React.FC from "react" for classical componentsNextPage from "next" for page components that uses getInitialPropsDoes any using typescript-eslint know how to fix @typescript-eslint/unbound-method?
It highlights MyComponent in MyComponent.getInitialProps = ...
const MyComponent: NextPage = () => {...}
MyComponent.getInitialProps = ...
Most helpful comment
For people looking for replacing
NextFunctionComponent, you can replace it by:React.FCfrom "react" for classical componentsNextPagefrom "next" for page components that uses getInitialPropssee more: https://stackoverflow.com/a/57441122/3988308