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 declarations do not work?

See original GitHub issue

Hi, Thanks for your work on this library. I use typescript in my project and get next issue:

I import

import ReactExport from 'react-data-export';

and get image

but there is no available @types/react-data-export

how can I solve it?

Thanks

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
D4ITONcommented, Mar 10, 2022

It says me:

yarn add v1.16.0
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@types%2freact-export-excel: Not found".
info If you think this is a bug, please open a bug report with the information provided in "E:\\DATA\\client\\yarn-error.log".        
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command
0reactions
Daalbcommented, Apr 21, 2022

I have the same problem 😢

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clarify how to add a new declaration file · Issue #21344 - GitHub
Try npm install @types/xml-escape if it exists or add a new declaration (.d.ts) file containing declare module 'xml-escape';. It is not clear ...
Read more >
TypeScript Declaration File not working for NPM Module
In the declaration file, I have basic stuff like export function Connect(Path: String, Callback?: function): void | Error; . On the top of...
Read more >
Documentation - Introduction - TypeScript
The Declaration Files section is designed to teach you how to write a ... learning how .d.ts files work is that you're typing...
Read more >
Documentation - Type Declarations - TypeScript
If a library you're using is published as an npm package, it may include type declaration files as part of its distribution already....
Read more >
Documentation - Declaration Reference - TypeScript
The purpose of this guide is to teach you how to write a high-quality definition file. This guide is structured by showing documentation...
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