create-react-blog icon indicating copy to clipboard operation
create-react-blog copied to clipboard

Duplicate identifier 'LibraryManagedAttributes'

Open ndrwbv opened this issue 5 years ago • 0 comments

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>

ndrwbv avatar Feb 20 '20 08:02 ndrwbv