Build not working
Answered
Tibbs posted this in #help-forum

TibbsOP
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
19 Replies

TibbsOP
I got past that and can now build it but when deploying to vercel it gives me a 404 not found

Can you send screenshot of your file structure?

TibbsOP


can you send your
vercel.json
Also send your build commands which you've configured

@Anay-208 | Ping on replies can you send your `vercel.json`

TibbsOP
{
"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
TibbsOP

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 | Ping on replies Set framework preset to next

TibbsOP
Ah I didn't even see that it was set to other
too much coding tonight

That works now, tyvm

@Anay-208 | Ping on replies Set framework preset to next

Can you mark solution

TibbsOP
Yeah was doing it already 

Thank you again