Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Typescript blog example #196

Open
ericklind opened this issue Nov 10, 2020 · 0 comments
Open

Error in Typescript blog example #196

ericklind opened this issue Nov 10, 2020 · 0 comments

Comments

@ericklind
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant