Skip to content

Instantly share code, notes, and snippets.

@mininaim
Created May 31, 2024 17:14
Show Gist options
  • Save mininaim/378f3e35ef34ba8e02551847207e51fb to your computer and use it in GitHub Desktop.
Save mininaim/378f3e35ef34ba8e02551847207e51fb to your computer and use it in GitHub Desktop.
> next build
Next.js 14.2.1
Creating an optimized production build ...
Compiled successfully
Linting and checking validity of types
Collecting page data
Generating static pages (0/5) [= ]react-i18next:: You will need to pass in an i18next instance by using initReactI18next
TypeError: n.dir is not a function
at d (/Applications/MAMP/htdocs/wabutton-frontend/.next/server/app/_not-found/page.js:1:2353)
at nj (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:46251)
at nM (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:47571)
at nM (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:61546)
at nN (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:64546)
at nB (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:67538)
at nD (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:66680)
at nN (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:64853)
at nB (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:67538)
at nD (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:66680) {
digest: '1089146236'
}
Error occurred prerendering page "/_not-found". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: n.dir is not a function
at d (/Applications/MAMP/htdocs/wabutton-frontend/.next/server/app/_not-found/page.js:1:2353)
at nj (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:46251)
at nM (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:47571)
at nM (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:61546)
at nN (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:64546)
at nB (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:67538)
at nD (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:66680)
at nN (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:64853)
at nB (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:67538)
at nD (/Applications/MAMP/htdocs/wabutton-frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:66680)
Generating static pages (5/5)
> Export encountered errors on following paths:
/_not-found/page: /_not-found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment