Skip to content

Duplicate identifier 'LibraryManagedAttributes' #26

@ndrwbv

Description

@ndrwbv

I ran npx create-react-blog react-blog --typescript and got this error when open a post

TypeScript error in /Users/andrew/work_flow/react-blog/node_modules/@types/react-dom/node_modules/@types/react/index.d.ts(2906,14):
Duplicate identifier 'LibraryManagedAttributes'.  TS2300

    2904 |         // We can't recurse forever because `type` can't be self-referential;
    2905 |         // let's assume it's reasonable to do a single React.lazy() around a single React.memo() / vice-versa
  > 2906 |         type LibraryManagedAttributes<C, P> = C extends React.MemoExoticComponent<infer T> | React.LazyExoticComponent<infer T>
         |              ^
    2907 |             ? T extends React.MemoExoticComponent<infer U> | React.LazyExoticComponent<infer U>
    2908 |                 ? ReactManagedAttributes<U, P>
    2909 |                 : ReactManagedAttributes<T, P>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions