Skip to content

Issue when using yarn link and @types types #12860

Closed
@raybooysen

Description

@raybooysen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs More InfoThe issue still hasn't been fully clarified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions