Skip to content

Error in Typescript blog example #196

@ericklind

Description

@ericklind

Hi,
I was trying out the Navi TS blog example and as soon as I ran yarn start I got this:

navi/my-blog/node_modules/@types/react-dom/node_modules/@types/react/index.d.ts
TypeScript error in /Users/erick/Documents/spark-analytics/navi/my-blog/node_modules/@types/react-dom/node_modules/@types/react/index.d.ts(2978,14):
Duplicate identifier 'LibraryManagedAttributes'.  TS2300
    2976 |         // We can't recurse forever because 'type' can't be self-referential;
    2977 |         // let's assume it's reasonable to do a single React.lazy() around a single React.memo() / vice-versa
  > 2978 |         type LibraryManagedAttributes<C, P> = C extends React.MemoExoticComponent<infer T> | React.LazyExoticComponent<infer T>
         |              ^
    2979 |             ? T extends React.MemoExoticComponent<infer U> | React.LazyExoticComponent<infer U>
    2980 |                 ? ReactManagedAttributes<U, P>
    2981 |                 : ReactManagedAttributes<T, P>

Any idea why?

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions