Hey all, does anyone have any idea why I would be getting the error: ... react-i18next declares 'TFunction' locally, but it is no exported.?
I understand the type enhancements for react-i18next moved to i18next - but this was for version [email protected] and [email protected]. (https://react.i18next.com/latest/typescript)
The background is, I am moving a hook to an npm-module, the hood relies on import { TFunction, useTranslation } from 'react-i18next'.
In the project, this import works fine.
In the npm module code, this import ... react-i18next declares ;TFunction' locally, but it is no exported.
I don't understand why it works in the project, but not in the module?
I am setting the modules to identical versions in package.json:
"i18next": "^21.8.14"
"react-i18next": "^11.18.3"