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

Problem with importing i18next #571

Closed
Vrajmas opened this issue Oct 24, 2018 · 2 comments
Closed

Problem with importing i18next #571

Vrajmas opened this issue Oct 24, 2018 · 2 comments

Comments

@Vrajmas
Copy link

Vrajmas commented Oct 24, 2018

Hi, i came across a problem
i'm using
TypeScript 3.1.3 on react
"i18next": "^11.9.1"
"react-i18next": "^8.1.0"
"@types/react-i18next": "^7.8.2"

Problem is " node_modules/@types/i18next/index has no default export. " on import i18next in node_modules/react-i18next/index.d.ts file

Current code

import i18next, {
  TranslationFunction,
  ReactOptions as I18nOptions,
} from 'i18next';

i made some changes

import  {
  TranslationFunction,
  ReactOptions as I18nOptions,
} from 'i18next';
import * as i18next from 'i18next';

And it worked for me. Can somebody help me with this problem

@beheh
Copy link

beheh commented Oct 24, 2018

Should be fixed by #567.

@Vrajmas
Copy link
Author

Vrajmas commented Oct 24, 2018

The PR will be today ? Best regards

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

No branches or pull requests

4 participants