title: Property 'srcset' does not exist on type 'DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>'
body: <p>Can someone help with the TypeScript error:</p>
  
  <pre><code>Property 'srcset' does not exist on type 'DetailedHTMLProps&lt;ImgHTMLAttributes&lt;HTMLImageElement&gt;, HTMLImageElement&gt;'.
  </code></pre>
  
  <p>I can't figure out what is going wrong. I also tried this solution, but no result:</p>
  
  <pre><code>declare global {
    namespace JSX {
        interface IntrinsicElements {
          srcset: React.DetailedHTMLProps&lt;ImgHTMLAttributes&lt;HTMLImageElement&gt;, HTMLImageElement&gt;
        }
    }
  }
  </code></pre>