frontarm / navi

🧭 Declarative, asynchronous routing for React.
https://frontarm.com/navi/
MIT License
2.07k stars 71 forks source link

Error in Typescript blog example #196

Open ericklind opened 3 years ago

ericklind commented 3 years ago

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!