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 in connect.d.ts

See original GitHub issue

Using the latest version I’m getting the error below when compiling the project:

node_modules/undux/dist/src/react/connect.d.ts
(7,63): Generic type 'ComponentClass<P>' requires between 0 and 1 type arguments.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Ghirigorocommented, Jul 31, 2018

Not sure if it’s the latest. It’s the one that comes with create-react-app-typescript. I’m not using Undux anymore but I’ll see if I have an old version with it still in there and try reinstalling. If I do and it doesn’t work I’ll let you know.

0reactions
bchernycommented, Aug 6, 2018

Closing for inactivity. @Ghirigoro feel free to re-open if you can reproduce.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript doesn't throw error in .d.ts files
In my case, this was happening because I had "skipLibCheck": true in my tsconfig.json . Turning it to false fixed this problem.
Read more >
Usage with TypeScript raises error in `as.d.ts` · Issue #198
When I try to use your Button component ( import { Button } from 'reakit'; ), the following error appears: path/to/project/node_modules/reakit/ ...
Read more >
Documentation - Modules .d.ts - TypeScript
Comparing JavaScript to an example DTS. Common CommonJS Patterns. A module using CommonJS patterns uses module.exports to describe the exported values.
Read more >
TypeScript errors and how to fix them
A list of common TypeScript errors and how to fix them.
Read more >
What Are *.d.ts files? How to Use *.d.ts Files in TypeScript?
How to use *. d. ts files.
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