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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
21.5.1 problem with default export (TypeScript) #1692
Comments
Can you retry with v21.5.2 ? |
// @pedrodurek & @perrin4869 fyi: e7a9dd4 |
Thanks, this fixes |
I'm not seeing any warning here: https://codesandbox.io/s/i18next-typescript-import-issue-r2huh?file=/src/App.tsx |
I don't think it's possible to reproduce that on codesandbox, afaik it doesn't support custom eslint configs. You could try locally with this config:
(the rule import/no-named-as-default-member should be set to warn) |
ahhh if import/no-named-as-default-member is enabled, the warning makes sense. |
Yeah the issue is resolved, thanks 馃槉馃憤 |
If you like this module don鈥檛 forget to star this repo. Make a tweet, share the word or have a look at our https://locize.com to support the devs of this project. There are many ways to help this project 馃檹 |
馃悰 Bug Report
The following code used to work without eslint complaining:
After 21.5.1 this results in the message: Caution:
i18n
also has a named exportt
. Check if you meant to writeimport {t} from 'i18next'
instead. import/no-named-as-default-memberChanging the code to:
Results in a syntax error: Module '"i18next"' has no exported member 't'. Did you mean to use 'import t from "i18next"' instead?ts(2614)
Changing the code to:
Fixes the problem, but I don't think it's supposed to work this way.
To Reproduce
https://codesandbox.io/s/i18next-typescript-import-issue-r2huh?file=/src/App.tsx
Your Environment
The text was updated successfully, but these errors were encountered: