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
I'm trying to convert from a standalone repo to a mono repo using this documentation, but it's failing both using the nx command as well as the manual steps.
nx g convert-to-monorepo --verbose
NX Generating @nx/workspace:convert-to-monorepo
NX The following projects are defined in multiple locations:
- PROJECT_NAME:
- .
- apps/PROJECT_NAME
To fix this, set a unique name foreach projectin a project.json inside the project's root. If the project does not currently have a project.json, you can create one that contains only a name.ProjectsWithConflictingNamesError: The following projects are defined in multiple locations:- PROJECT_NAME: - . - apps/PROJECT_NAME---And manual approach:$ nx g app tempConvert compiler options from json failed, Cannot read file 'D:/projects/PROJECT_NAME/tsconfig.json'.Convert compiler options from json failed, Cannot read file 'D:/projects/PROJECT_NAME/tsconfig.json'. NX Failed to process project graph.
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
The error message is telling you that the package.json or project.json at the root has a name set that conflicts with the package.json or project.json in the individual project's root.
You can fix the error by updating either name.
Can you create a reproduction for us the better diagnose the root cause of this?
@AgentEnder thanks for the prompt reply!
It was indeed the name in package.json
I had not changed it since the initial generation, so I guess if you would create a standalone repo with default values and then run nx g convert-to-monorepo it will cause the same error.
Didn't know nx would also look there for project information.
I could run it, but ran into a couple of things I had to fix manually:
/tsconfig.json and /.eslintrc.json were missing => copied manually from another project
.eslintrc.base.json referred itself, causing call stack exceeded
Had to manually fix Tailwind & Storybook
Not major, the generator definitely helped. Thanks again.
Current Behavior
I'm trying to convert from a standalone repo to a mono repo using this documentation, but it's failing both using the nx command as well as the manual steps.
Expected Behavior
I can successfully convert to a mono repo
GitHub Repo
No response
Steps to Reproduce
nx g convert-to-monorepo
OR
nx g app temp
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: