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.

rebass-preset is missing typescript definitions

See original GitHub issue

When trying to use rebass with the rebass preset in typescript following issue occurs.

Could not find a declaration file for module '@rebass/preset'. '/Users/marco/code/my-project/node_modules/@rebass/preset/dist/index.js' implicitly has an 'any' type.
  Try `npm install @types/rebass__preset` if it exists or add a new declaration (.d.ts) file containing `declare module '@rebass/preset';`ts(7016)

The @types/rebass__preset package is not available.

Would be great if this would be supported.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:16
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
vamshi9666commented, Aug 21, 2020

+1

0reactions
jxnblkcommented, Aug 21, 2020

This library is written in JavaScript. You’ll need to handle TypeScript in the definitely typed repo

Read more comments on GitHub >

github_iconTop Results From Across the Web

rebass-preset is missing typescript definitions - - Bountysource
When trying to use rebass with the rebass preset in typescript following issue occurs. Could not find a declaration file for module '@rebass/preset'....
Read more >
onno - npm Package Health Analysis | Snyk
@rebass/preset ... Looks like onno is missing a security policy. ... Written in TypeScript with comprehensive type definitions and interfaces ...
Read more >
rebassjs/rebass Issues - Giters
Pass props to rebass Button component with typescript is not working. Updated 8 months ago 3 ... rebass-preset is missing typescript definitions.
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