Listen, do you happen to know how to remove the error? I put on div id – that on clicking the button would go to this place in the page. but id stands out as an error – Type ‘{ children: (’‘’ | Element | undefined)[]; id: string; className: string; }’ can not be assigned to the type “DetailedHTMLProps<HTMLAttributes, HTMLDivElement>”.ts(2322). The ‘id’ property does not exist in the ‘DetailedHTMLProps<HTMLAttributes, HTMLDivElement>’ type.ts(2322). while everything is running locally, everything works, although it is highlighted in red. when building, an error with this id comes out. I don’t understand how to fix it. react typescript application
Translated with DeepL.com (free version)
I haven’t found anything that would help.
Иван Михайлютин is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.