Home > Back-end >  NextJS link crossorigin property
NextJS link crossorigin property

Time:09-30

I have this entry between Head on my NextJS app

<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />

Although I got the error

Type '{ rel: string; href: string; crossorigin: true; }' is not assignable to type 'DetailedHTMLProps<LinkHTMLAttributes, HTMLLinkElement>'. Property 'crossorigin' does not exist on type 'DetailedHTMLProps<LinkHTMLAttributes, HTMLLinkElement>'. Did you mean 'crossOrigin'?ts(2322)

How can I fix this error?

enter image description here

CodePudding user response:

did you try to write crossOrigin instead of crossorigin?

  • Related