Next-i18next: Warn: You have not declared a namespacesRequired array on your page-level component: undefined. This will cause all namespaces to be sent down to the cli ent, possibly negatively impacting the performance of your app. For more info, see: https://github.com/isaachinman/next-i18next#4-declaring-namespace-dep endencies

Created on 16 Jan 2019  路  7Comments  路  Source: isaachinman/next-i18next

I have seen this error..
image

but after delete the code.. (This code can see at example code of your repository)
image

The Warning message disappeared.

Should specify the 'namespacesRequired'? then let me know how can resolve.

Thank you.^^

Most helpful comment

@chulphan do you have pages/_error.jsx in you project? This file should exist and it should also define namespacesRequired.

All 7 comments

I don't understand your question. It's probably the error page, see #79. You should include namespacesRequired on all page-level components.

When i specify namespacesRequired occur warn message as above every seconds.
But after the namespacesRequired then the warning message is disappear.

I do not understand what you are asking. Please read #79 as well as the README.

@chulphan do you have pages/_error.jsx in you project? This file should exist and it should also define namespacesRequired.

@kachkaev After make the _error.tsx file in pages, the warning message is disappeared. Thank you!!^^. I refered your examples, but there are no file _error.jsx. I think if you can add _error.jsx in your example, then would be more helpful.
I apperciate for your help. (and sorry can't speak english, make you confuse..^^)

@chulphan That's a fair point. I don't want to provide an example that throws warnings out of the box. I've added an error page to the example with dc3cce9 - should be clear now that we are suggesting this in order to localise your error messages.

@isaachinman I apperciate for you reflect my opinion^^

Was this page helpful?
0 / 5 - 0 ratings