Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find a declaration file for module 'react-timeago/lib/**' #213

Open
erayerdin opened this issue Oct 29, 2024 · 2 comments
Open

Comments

@erayerdin
Copy link

After importing these:

import buildFormatter from 'react-timeago/lib/formatters/buildFormatter';
import turkishStrings from 'react-timeago/lib/language-strings/tr';

The code works like a charm in runtime but it does not compile (on Vite+Typescript+React). It says:

Could not find a declaration file for module 'react-timeago/lib/formatters/buildFormatter'. '/home/erayerdin/Projects/kadaogr/node_modules/react-timeago/lib/formatters/buildFormatter.js' implicitly has an 'any' type.
  If the 'react-timeago' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-timeago'
@erayerdin
Copy link
Author

referenced here: DefinitelyTyped/DefinitelyTyped#71028

@nmn
Copy link
Owner

nmn commented Oct 30, 2024

will fix. Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants