-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File already exists error when building #11601
Comments
Hi, what version of Node.js are you using where you are seeing this error? Next.js |
@ijjk I'm using Node v10.10.0 |
Ok, @ijjk thanks! Yeah, I just installed |
I'm having this same problem, but with a small quirk. It fails if i am not the one executing it. I I type manually into my shell I have discarded it being my node version by changing to
|
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
A clear and concise description of what the bug is.
When I run
npx next build
in my Next.js project, I come up with this error:When I remove that
.next
directory, I come up with a similar error:I'm guessing that this has something to do with
fs
.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
npm i
npm run build
ornpx next build
Expected behavior
A clear and concise description of what you expected to happen.
Running
npm run build
ornpx next build
should build the app for production usage.System information
^9.3.4
The text was updated successfully, but these errors were encountered: