Next.js Discord

Discord Forum

Build not working

Answered
Tibbs posted this in #help-forum
Open in Discord
Avatar
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 | Ping on replies
Set framework preset to next
View full answer

19 Replies

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