question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typescript error with ^4.0.0-beta.2

See original GitHub issue

I wanted to install redux-saga-test-plan and I got some typing errors. So I tried to update the dependencies and I finally end up with the following dependency versions: “typescript”: “^3.1.1”, “redux-saga”: “^1.0.1”, “redux-saga-test-plan”: “^4.0.0-beta.2”,

and I see this type-checking error:

node_modules/redux-saga-test-plan/effects.d.ts:13:16 - error TS2314: Generic type 'Pattern' requires 1 type argument(s).

13     (pattern?: E.Pattern): R;
                  ~~~~~~~~~

I also tried with the last typescript version (3.3) and same error.

I investigated a little bit and it looks like this Pattern type changed 2 months ago in redux-saga (https://github.com/redux-saga/redux-saga/blob/master/packages/types/index.d.ts) but maybe the problem appears only with the recent versions of typescript…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
jfairbankcommented, May 7, 2019

Hey, folks. Sorry for the delay. I’ve published v4.0.0-beta.3. I’m working with @jp928 to give him publish access so I don’t slow things down.

3reactions
jp928commented, May 6, 2019

@Favna @fabienchn I had informed the author via another channel who has the privilege to publish to npm. It should be coming soon. Thanks for using the library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

4.0.0 breaks with typescript (all versions) #9868 - GitHub
Describe the bug I made a clean install of cra@next with typescript and then upgraded typescript to 4.1.0-beta ( also tested ...
Read more >
Announcing TypeScript 4.0 Beta - Microsoft Developer Blogs
TypeScript 4.0 brings two fundamental changes, along with inference ... Previously, TypeScript would issue an error like the following.
Read more >
The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 ...
An unhandled exception occurred: The Angular Compiler requires TypeScript >=4.0.0 and <4.2.0 but 4. 2.3 was found instead. To resolve this issue ...
Read more >
TypeScript: JavaScript With Syntax For Types.
TypeScript is JavaScript with syntax for types. TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at ......
Read more >
What's new with TypeScript 4.0 - JavaScript in Plain English
TypeScript 3.9 has been released last month, and the first beta of TypeScript 4.0 is already in beta. Here's everything that's new!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found