vss-web-extension-sdk
vss-web-extension-sdk copied to clipboard
Property 'footer' must be of type X but here is of type X
When I try to import * as React from "react" without first doing npm install @types/react, typescript says "Cannot find module 'react'".
So if I then npm install @types/react, I get a lot of errors such as the following
node_modules/vss-web-extension-sdk/node_modules/@types/react/index.d.ts:3675:13 - error TS2717: Subsequent property declarations must have the same type. Property 'footer' must be of type 'DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>'.
3675 footer: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
Why is there a @types/react inside vss-web-extension-sdk/node_modules, why doesn't it get loaded unless I npm install @types/react?