You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usage
$ next build <dir>
<dir> represents where the compiled dist folder should go.
However, the build function is called with <dir> as an argument and it is then used as the root dir for some calls, like findPagesDir.
This results in an error saying the pages folder is not present in <dir>, but according to the documentation the <dir> folder should only be used as the destination for the compiled app.
To Reproduce
Create simple next project
run mkdir dist && npx run build dist
Expected behavior
Application should be correctly compiled into the dist folder.
The text was updated successfully, but these errors were encountered:
tiagoengel
changed the title
next build<dir> not handled correctly.
"next build" doesn't handle "dist" argument correctly.
Mar 17, 2020
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.
vercel
locked as resolved and limited conversation to collaborators
Jan 30, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Describe the bug
According to
next build
help:However, the build function is called with
<dir>
as an argument and it is then used as the root dir for some calls, like findPagesDir.This results in an error saying the
pages
folder is not present in<dir>
, but according to the documentation the<dir>
folder should only be used as the destination for the compiled app.To Reproduce
mkdir dist && npx run build dist
Expected behavior
Application should be correctly compiled into the
dist
folder.The text was updated successfully, but these errors were encountered: