Typescript error in connect.d.ts
See original GitHub issueUsing 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:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Closing for inactivity. @Ghirigoro feel free to re-open if you can reproduce.