redux-saga / redux-saga

An alternative side effect model for Redux apps

Home Page:https://redux-saga.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TS Error: Return type annotation circularly references itself.

Exrun94 opened this issue · comments

Upgrading from v 0.14.8 to 1.1.3 (any v1+ leads to the same issue)
After building in dev env, I am getting an typescript error from the library

[at-loader] ./node_modules/@redux-saga/core/types/ts3.6/effects.d.ts:465:4 TS2577: Return type annotation circularly references itself.
The project does compile but sagas do not work

I have another project with the exact same typescript / babel version which compiles fine.
"@babel/core": "7.2.2",
"typescript": "3.8.3",

Any assistance will be appreciated.

Please always try to share a repro case in a runnable form - either by providing a git repository to clone or a codesandbox. OSS maintainers usually can't afford the time to set up the repro, even if exact steps are given.

@Exrun94 Thanks for submitting this issue. Could you please add a repro case so we can evaluate this issue? Thanks!