-
-
Notifications
You must be signed in to change notification settings - Fork 764
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
Build warning: appWithTranslation opted-out Automatic Static Optimization due to getInitialProps in pages/_app #840
Comments
@isaachinman do you know a solution regarding this waring, I read different reports about this, but there is not solution. Thank you, kindly |
Hi there, please search through previous issues. |
Please re-open issue. |
@nataliaroque77 how did you fix it? |
There is not fix for this yet, appWithTranslation has getInitialProps. People with similar issues were worst, their app was not doing translations, etc. |
Well, i thought it would work good, but it works with delay: At the first loading, it does not load the Inspecting it for the first time we get this: After reloading, we can find the required namespace: Both namespaces are in the option, but just the first one, defined on Why does this happen? |
@SalahAdDin This will be solved by #869. |
Describe the bug
_app.tsx has not getInitialProps, but appWithTranslation has getInitialProps
When building we get below warning
Warning: You have opted-out of Automatic Static Optimization due to
getInitialProps
inpages/_app
. This does not opt-out pages withgetStaticProps
Occurs in next-i18next version
"next-i18next": "^4.2.1"
Steps to reproduce
yarn run build
Expected behaviour
No opted-out Automatic Static Optimization warnings
The text was updated successfully, but these errors were encountered: