-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Contributing: Local next build
failing
#27826
Comments
Yeah, I seem to be getting to same exact issue on Ubuntu (Ubuntu 20.04 LTS) and MacOS (12.0 Monterey). |
Hi, it's recommended to test apps with the locally built version of Next.js by moving the app within the Next.js repo and running with |
Initializing a Next project inside the repo, I can build it with:
Though I do get this error related to ESLint conflicts, it builds correctly and serves with
|
Hmm it might be good to note in the contributing doc that the monorepo's |
Closing as I think this is resolved now that #27913 has landed |
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. |
What version of Next.js are you using?
Latest
What version of Node.js are you using?
Latest
What browser are you using?
Chrome (Not relevant)
What operating system are you using?
Ubuntu (Not relevant)
How are you deploying your application?
next build
Describe the Bug
I'm trying to use my local version of Next, following
yarn prepublish
, to build the example repo (thatcreate-next-app
makes) withnext build
. The local version is linked in package.json via"next": "/path/to/local/next"
.yarn dev
works as expected, but trying to use the localnext build
throws:I tried moving the project inside the
next/
project, but that throws a different error I encountered multiple times trying to develop locally, a complaint about theDocument
class innext/document
using hooks:Expected Behavior
The same behavior as a globally installed Next binary (i.e., the same behavior as seen after
rm -rf node_modules && yarn global add next && next build
).To Reproduce
It seems like building canary locally,
next build
will not work on projects it is tested on. If nobody can reproduce this, thoughts would be welcome on what is causing these errors.The text was updated successfully, but these errors were encountered: