hozana / next-translate-routes

Flexible and translated routes for Next.js without custom server
MIT License
115 stars 30 forks source link

children is not assignable to <Link> #26

Closed wangwailok closed 2 years ago

wangwailok commented 2 years ago

image image

wangwailok commented 2 years ago

My Next.js Version : 12.1.6

jeromeheissler commented 2 years ago

You can declare this in a .d.ts file :

declare module 'next-translate-routes/link' {
  export declare const Link: React.FC<React.PropsWithChildren<LinkProps>>;
  export default Link;
}

Or downgrade your project to React 17