-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
npx create-nx-workspace@latest (v19.3.0) fails for a vue monorepo #26605
Comments
Additonal info: I switched to node v21.7.3 and npm 10.5.0, same result. I also tried
It also fails, same error. |
Ahh, now I tried using the same name for workspace and application name and then it works. But that is awkward?! Why ask for these two names in the first place if they have to be same anyway? |
Hey @ghost23 ! No there was an issue here. The first name that the prompt asks for is the workspace name, useful for when you have multiple projects in the workspace. The second is the application name in particular that is set up immediately. There was an issue with the second step here which didn't parse PascalCased names correctly. |
Ah, I see. Thank you for the explanation |
…#26729) <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> The `vue` app generator is not using the normalized name produced by `projectRootAndFormat` util when creating the application. This leads to errors in some cases. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Use the `projectName` produced by the value to create the project correctly. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #26605
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
I am on a Windows 11 machine, running powershell.
I type
npx create-nx-workspace@latest --verbose
and answer the questions like this:Then it successfully installs the npm dependencies but fails at creating my workspace:
In the log file it says:
Expected Behavior
My Vue Workspace should be correctly generated
GitHub Repo
No response
Steps to Reproduce
See description above
Nx Report
Failure Logs
see in the description
Package Manager Version
npm v10.7.0
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: