You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
After importing these:
The code works like a charm in runtime but it does not compile (on Vite+Typescript+React). It says:
The text was updated successfully, but these errors were encountered: