Closed
Description
TypeScript Version: 2.0.3
I have two projects, ProjectA and ProjectB. Both projects have @types/react installed. If ProjectA is linked to ProjectB via yarn link
, ProjectB will start to complain when building:
node_modules/@types/react/index.d.ts(7,21): error TS2300: Duplicate identifier 'React'.
node_modules/@types/react/index.d.ts(2449,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'a' must be of type 'HTMLProps<HTMLAnchorElement>', but here has type 'HTMLProps<HTMLAnchorElement>'.
Since there is @types/react in both projects, this seems to cause issues.