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

The following projects are defined in multiple locations (incorrectly triggered) #26954

Open
1 of 4 tasks
salman15 opened this issue Jul 16, 2024 · 0 comments
Open
1 of 4 tasks
Assignees
Labels
scope: nextjs Issues related to NextJS support for Nx type: bug

Comments

@salman15
Copy link

Current Behavior

When trying to build the app I get an incorrect error message saying that my project names aren't unique.

Expected Behavior

To build the application

GitHub Repo

No response

Steps to Reproduce

  1. create an nextjs application
  2. create an custom server
  3. run the app in development mode
  4. close the app
  5. try to build the app

Nx Report

- offer-floor: 
  - apps/offer-floor
  - dist/production/apps/offer-floor
- undefined: 
  - apps/offer-floor/.next
  - apps/offer-floor/.next/types

To fix this, set a unique name for each project in 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.

Error: The following projects are defined in multiple locations:
- offer-floor: 
  - apps/offer-floor
  - dist/production/apps/offer-floor
- undefined: 
  - apps/offer-floor/.next
  - apps/offer-floor/.next/types

Failure Logs

No response

Package Manager Version

yarn 20

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@FrozenPandaz FrozenPandaz added the scope: nextjs Issues related to NextJS support for Nx label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: nextjs Issues related to NextJS support for Nx type: bug
Projects
None yet
Development

No branches or pull requests

3 participants