Next.js Discord

Discord Forum

Build not working

Answered
Tibbs posted this in #help-forum
Open in Discord
TypeError: e[o] is not a function
    at t (/Users/tward/Desktop/Coding/portfolios/nextjs-portfolio/.next/server/webpack-runtime.js:1:127)
    at 5786 (/Users/tward/Desktop/Coding/portfolios/nextjs-portfolio/.next/server/app/page.js:9:139612)
    at t (/Users/tward/Desktop/Coding/portfolios/nextjs-portfolio/.next/server/webpack-runtime.js:1:127)
    at 7523 (/Users/tward/Desktop/Coding/portfolios/nextjs-portfolio/.next/server/app/page.js:9:13530)
    at Object.t [as require] (/Users/tward/Desktop/Coding/portfolios/nextjs-portfolio/.next/server/webpack-runtime.js:1:127)
    at require (/Users/tward/Desktop/Coding/portfolios/nextjs-portfolio/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:131:7946)
    at u (/Users/tward/Desktop/Coding/portfolios/nextjs-portfolio/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:36:646)
    at F (/Users/tward/Desktop/Coding/portfolios/nextjs-portfolio/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:36:10477)
    at T (/Users/tward/Desktop/Coding/portfolios/nextjs-portfolio/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:36:8526)
    at rT (/Users/tward/Desktop/Coding/portfolios/nextjs-portfolio/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:32387)
Export encountered an error on /page: /, exiting the build.
 ⨯ Static worker exited with code: 1 and signal: null
Answered by Anay-208
Set framework preset to next
View full answer

19 Replies

I got past that and can now build it but when deploying to vercel it gives me a 404 not found
@Anay-208 Can you send error screenshot?
Can you send screenshot of your file structure?
can you send your vercel.json
Also send your build commands which you've configured
@Anay-208 can you send your `vercel.json`
{
  "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}
@Tibbs { "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }] }
Yup, its because of this config, Remove this config and try again
because index.html doesn't exist
It was the same before but I will try again now
@Tibbs Click to see attachment
Set framework preset to next
Answer
You can override the install command then
@Anay-208 Set framework preset to next
Ah I didn't even see that it was set to other :coolcry: too much coding tonight
That works now, tyvm
@Anay-208 Set framework preset to next
Can you mark solution
Yeah was doing it already :leocheers:
Thank you again