-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
v8.x: "Cannot read property 'usePureComponent' of undefined" in withNamespaces.js when nesting withNamespaces() #528
Comments
To reproduce with
import React from 'react';
import { withNamespaces } from 'react-i18next';
const Test = ({ t }) => (
<div>Another description: {t('description.part2')}</div>
);
export default withNamespaces("translations")(Test);
|
Maybe #355 related |
@raulfdm not related to that...just a problem introduced with v8...currently working on a fix. |
@jamuhl ohh I see.. I downgrade to v7 and start to work again 🤔 .. thanks btw |
should be fixed in react-i18next@8.0.5 - please verify |
Thanks! Well, this seems to be fixed but I have another bug, apparently related. Only in production, I still need some time to debug but I believe it comes from utils::initSSR(): L26: |
@olivierpascal should be fixed in react-i18next@8.0.6 |
That was quick! |
Using 8.0.6 and cleared my caches, still getting the abovementioned error:
Using it in combination with:
|
@pepf are you using |
@pepf usually when I have this weird situation I remove my |
I'm using the I18nextProvider, but I've been checking the source files, seems to be a caching issue still 😅 Thanks! |
@pepf thanks for double checking -> if there is still an issue or something not working as intended let me know getting v8 out was rather demanding - a lot changed under the hood |
closing this for now....feel free to reopen if finding any other problem |
Maybe withNamespaces does not pass i18nOptions through?
The text was updated successfully, but these errors were encountered: