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

turbo watch does not work in single-package workspaces #9531

Open
1 task done
ygrandgirard opened this issue Nov 27, 2024 · 1 comment
Open
1 task done

turbo watch does not work in single-package workspaces #9531

ygrandgirard opened this issue Nov 27, 2024 · 1 comment
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage

Comments

@ygrandgirard
Copy link

ygrandgirard commented Nov 27, 2024

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

https://github.com/ygrandgirard/turbo-single-package-watch-repro

Which canary version will you have in your reproduction?

2.3.3

Enviroment information

> npx turbo info
turbo 2.3.3

CLI:
   Version: 2.3.3
   Path to executable: <project>\node_modules\turbo-windows-64\bin\turbo.exe
   Daemon status: Running
   Package manager: npm

Platform:
   Architecture: x86_64
   Operating system: windows
   WSL: false
   Available memory (MB): 1900
   Available CPU cores: 16

Environment:
   CI: None
   Terminal (TERM): unknown
   Terminal program (TERM_PROGRAM): unknown
   Terminal program version (TERM_PROGRAM_VERSION): unknown
   Shell (SHELL): unknown
   stdin: false

Expected behavior

It should run my command in watch mode.

Actual behavior

> npx turbo watch lint
turbo 2.3.3

• Running lint
• Remote caching disabled
• Running lint
• Remote caching disabled
  × discovery failed: version mismatch: package.json: no workspaces found. Turborepo requires npm workspaces to be
  │ defined in the root package.json

To Reproduce

  1. Clone https://github.com/ygrandgirard/turbo-single-package-watch-repro
  2. Run npm install
  3. Run npx turbo watch lint

Additional context

No response

@ygrandgirard ygrandgirard added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage labels Nov 27, 2024
@tmm1
Copy link

tmm1 commented Nov 28, 2024

same here: https://github.com/tmm1/turbotest

❯ yarn && turbo watch dev
yarn install v1.22.22
warning package.json: "test" is also the name of a node core module
warning package.json: No license field
warning test: "test" is also the name of a node core module
warning test: No license field
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.02s.
turbo 2.3.3

• Packages in scope:
• Running dev in 0 packages
• Remote caching disabled
• Packages in scope:
• Running dev in 0 packages
• Remote caching disabled
  × discovery failed: version mismatch: package.json: no workspaces found. Turborepo requires yarn workspaces to be defined in the root
  │ package.json

@anthonyshew anthonyshew changed the title 🐛 Bug: turbo watch does not work in single-package workspaces turbo watch does not work in single-package workspaces Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage
Projects
None yet
Development

No branches or pull requests

2 participants