You will need to pass in an i18next instance by using initReactI18next
Unanswered
Atlantic herring posted this in #help-forum
Original message was deleted.
7 Replies
Atlantic herring
this is the whole vercel build log
info - Linting and checking validity of types
Warning: For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'yarn add sharp', and Next.js will use it automatically for Image Optimization.
Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
info - Creating an optimized production build
info - Compiled successfully
info - Collecting page data
[ ] info - Generating static pages (0/6)react-i18next:: You will need to pass in an i18next instance by using initReactI18next
info - Generating static pages (6/6)
info - Finalizing page optimization
Route (pages) Size First Load JS
┌ λ / 13.3 kB 166 kB
├ /_app 0 B 153 kB
├ ○ /404 182 B 153 kB
├ λ /About 2.73 kB 155 kB
├ λ /ATE 1.3 kB 154 kB
├ λ /ATEI 1.33 kB 154 kB
├ λ /ATQHSE 1.35 kB 154 kB
├ λ /CandidateSpace 4.64 kB 157 kB
├ λ /LegalMentions 460 B 153 kB
├ λ /OurOffers 14.1 kB 167 kB
└ λ /PrivacyPolicy 496 B 153 kB
+ First Load JS shared by all 168 kB
├ chunks/framework-2c79e2a64abdb08b.js 45.2 kB
├ chunks/main-02788803e6389598.js 28.5 kB
├ chunks/pages/_app-365c9ec4b6e67ddc.js 77.9 kB
├ chunks/webpack-0b5d8249fb15f5f3.js 939 B
â”” css/c1f563ac3f61b7a8.css 15.9 kB
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
â—‹ (Static) automatically rendered as static HTML (uses no initial props)and this is the whole build locally
as u can see im not getting this error
as u can see im not getting this error
because of this error im not able to translate some words from public/locales/
and this is the i18 next config
everything works fine locally