Skip to content
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

"next build" doesn't handle "dist" argument correctly. #11151

Closed
tiagoengel opened this issue Mar 17, 2020 · 2 comments
Closed

"next build" doesn't handle "dist" argument correctly. #11151

tiagoengel opened this issue Mar 17, 2020 · 2 comments

Comments

@tiagoengel
Copy link

tiagoengel commented Mar 17, 2020

Bug report

Describe the bug

According to next build help:

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

  1. Create simple next project
  2. run mkdir dist && npx run build dist

Expected behavior

Application should be correctly compiled into the dist folder.

@tiagoengel tiagoengel changed the title next build <dir> not handled correctly. "next build" doesn't handle "dist" argument correctly. Mar 17, 2020
@timneutkens
Copy link
Member

Updated the description as it was incorrect. See 5274535

@balazsorban44
Copy link
Member

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 vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants