Getting an error for uploading a next to vercel project: Error: Command "npm run build" exited w
Answered
sedev26 posted this in #help-forum
sedev26OP
Getting an error when uploading from github to next.js Error: Command "npm run build" exited
24 Replies
sedev26OP
@sedev26 Click to see attachment
do you have the default export of the react component on those page showed on the log?
@Ray do you have the default export of the react component on those page showed on the log?
sedev26OP
I used export default function name(){}
@sedev26 I used export default function name(){}
could you show the code on
pages/profile?@Ray could you show the code on `pages/profile`?
sedev26OP
I can show you the code
@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`
sedev26OP
Dont have anything I am working one some parts
@Ray could you show the code on `pages/profile` not `components/TweetInput`
sedev26OP
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
sedev26OP
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/messagespages/profilepages/more@Ray could you show the code for
`pages/messages`
`pages/profile`
`pages/more`
sedev26OP
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
sedev26OP
I am working on those
What the issue is npm run build for deploying it to vercel
then export a react component
sedev26OP
?
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
sedev26OP
Got it to deploy thank
sedev26OP
Fixed error