Next.js Discord

Discord Forum

Getting an error for uploading a next to vercel project: Error: Command "npm run build" exited w

Answered
sedev26 posted this in #help-forum
Open in Discord
Getting an error when uploading from github to next.js Error: Command "npm run build" exited
Answered by Ray
remove the file if you don't have any code inside
View full answer

24 Replies

@sedev26 Click to see attachment
do you have the default export of the react component on those page showed on the log?
@sedev26 I used export default function name(){}
could you show the code on pages/profile?
@Ray could you show the code on `pages/profile`?
I can show you the code
@Ray could you show the code on `pages/profile`?
@Ray could you show the code on `pages/profile`?
@sedev26 Click to see attachment
could you show the code on pages/profile not components/TweetInput
@Ray could you show the code on `pages/profile` not `components/TweetInput`
Dont have anything I am working one some parts
@Ray could you show the code on `pages/profile` not `components/TweetInput`
I am working on making the message, explore, more, other features to work dynamically on the frontend and backend
@sedev26 Dont have anything I am working one some parts
you should export a react component from it even you havent worked on it yet or don't create that page file until you need it
@Ray you should export a react component from it even you havent worked on it yet or don't create that page file until you need it
I dont understand. I am deploying the project to vercel and getting an error.
@sedev26 I dont understand. I am deploying the project to vercel and getting an error.
could you show the code for
pages/messages
pages/profile
pages/more
@Ray could you show the code for `pages/messages` `pages/profile` `pages/more`
Those have nothiung in those. Like I said I am creating other pages to add on.
@sedev26 Those have nothiung in those. Like I said I am creating other pages to add on.
remove the file if you don't have any code inside
Answer
@Ray remove the file if you don't have any code inside
I am working on those
What the issue is npm run build for deploying it to vercel
then export a react component
?
you must export a component. if you don't have any code there yet, delete the file
@Ray remove the file if you don't have any code inside
Got it to deploy thank
Getting a _app.js error for the redux
Fixed error