force-graph icon indicating copy to clipboard operation
force-graph copied to clipboard

Type alias 'ForceGraphInstance' circularly references itself.

Open yan90wang opened this issue 4 years ago • 5 comments

When trying to compile using the sample example: ERROR in node_modules/force-graph/src/index.d.ts:171:13 - error TS2456: Type alias 'ForceGraphInstance' circularly references itself. export type ForceGraphInstance = ForceGraphGenericInstance<ForceGraphInstance>;

yan90wang avatar May 18 '20 11:05 yan90wang

@yan90wang make sure to upgrade to a recent version of TypeScript.

This issue was solved in TS version 3.7.0: https://devblogs.microsoft.com/typescript/announcing-typescript-3-7/

vasturiano avatar May 18 '20 17:05 vasturiano

Just a note, TS 3.7.0 has some breaking changes that makes it not possible to upgrade to the latest and greatest react-graph unfortunately. At least in my case with the project I am working on.

varqasim avatar Jun 08 '20 14:06 varqasim

Can we have any different solution for 3.4 typescript version? Please let me know asap , I could not able to upgrade type script version to 3.7 at this moment.

mail2soumenpal avatar Jun 18 '20 04:06 mail2soumenpal

if you use angular 8, the compiler forbids using typescript > 3.6.0

wunaidage avatar Jul 10 '20 14:07 wunaidage

any updates on it? Im on angular 8, and the project is cant be built, I also can't upgrade to a newer angular. Is there a workaround?

gavr123456789 avatar Mar 25 '21 15:03 gavr123456789