-
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
yarn create next-app
fails when directory is a workspace
#32713
Comments
yarn create next-app
errors when directory is a workspaceyarn create next-app
fails when directory is a workspace
This comment has been minimized.
This comment has been minimized.
The problem is when you install dependencies in In the souce code :
so there is two solution , either specify version in this object or try to know if there is nested folder and should add version in the package json |
@MISSOURI10101 Here is a related issue to workspaces not having their dependencies installed if their version is omitted. It was fixed in I believe Also to note, I now see the reason why |
Just ran into this exact issue. npx version worked. Needed to manually remove node_modules the npm lockfile and add the version to the package.json etc Would love it if yarn would work as expected |
This closed issue has been automatically locked because it had no new activity for a month. 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?
12.0.7
What version of Node.js are you using?
16.13.1
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
next export
Describe the Bug
With the following project structure:
And with the following
package.json
:Running this command fails:
With this following output:
Expected Behavior
I would expect that following command would produce a successful boilerplate without error:
Additionally, running the following command works successfully when not targeting a workspace:
To note, using
npx
works successfully:To Reproduce
Clone this repository and run the following command in the project root:
The text was updated successfully, but these errors were encountered: