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

Remove console.warn because is already solved on Next.js 10.2.1-canary.4 #609

Merged
merged 1 commit into from
May 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/plugin/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ export default function loader(rawCode: string) {
isGetStaticProps || isGetServerSideProps || isGetInitialProps

if (isGetInitialProps || (!hasLoader && isWrapperWithExternalHOC)) {
console.warn(
`🚨 [next-translate] In Next 10.x.x there is an issue related to i18n and getInitialProps. We recommend to replace getInitialProps to getServerSideProps on ${page}. Issue: https://github.com/vercel/next.js/issues/18396`
)
return templateWithHoc(rawCode, { typescript, hasLoadLocaleFrom })
}

Expand Down