question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Run-many projects option not working properly

See original GitHub issue

Current Behavior

nx run-many --target=lint --projects=web-app,api result :

Error: Invalid projects: web-app api
    at checkForInvalidProjects (C:\Users\khali\devs\run-many-projects\node_modules\@nrwl\workspace\src\command-line\run-many.js:54:15)
    at projectsToRun (C:\Users\khali\devs\run-many-projects\node_modules\@nrwl\workspace\src\command-line\run-many.js:35:9)
    at Object.<anonymous> (C:\Users\khali\devs\run-many-projects\node_modules\@nrwl\workspace\src\command-line\run-many.js:21:26)
    at Generator.next (<anonymous>)
    at fulfilled (C:\Users\khali\devs\run-many-projects\node_modules\tslib\tslib.js:114:62)

Expected Behavior

nx run-many --target=lint --projects=web-app,api should lint project1 and project2 Same for other executors like test and so.

Steps to Reproduce

I produce it here https://github.com/khalilou88/run-many-projects

Failure Logs

Environment

`PS C:\Users\khali\devs\run-many-projects> nx report

NX Report complete - copy this into the issue template

Node : 14.15.1 OS : win32 x64 npm : 6.14.8

nx : 13.0.2 @nrwl/angular : 13.0.2 @nrwl/cli : 13.0.2 @nrwl/cypress : 13.0.2 @nrwl/devkit : 13.0.2 @nrwl/eslint-plugin-nx : 13.0.2 @nrwl/express : Not Found @nrwl/jest : 13.0.2 @nrwl/linter : 13.0.2 @nrwl/nest : 13.0.2 @nrwl/next : Not Found @nrwl/node : 13.0.2 @nrwl/nx-cloud : Not Found @nrwl/react : Not Found @nrwl/schematics : Not Found @nrwl/tao : 13.0.2 @nrwl/web : Not Found @nrwl/workspace : 13.0.2 @nrwl/storybook : 13.0.2 @nrwl/gatsby : Not Found typescript : 4.3.5

PS C:\Users\khali\devs\run-many-projects> `

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
Stusawcommented, Apr 5, 2022

Still have an issue with this. Solution for me is to declare --projects in quotes ( " or ’ ), E.g. --projects=“project1,project2”

1reaction
ajihyfcommented, May 26, 2022

Same issue on Windows. Add quotes helps but can not do it in vscode externsion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nx CLI run many command is not working for multiple apps
Try this: nx run-many --parallel --target=serve --projects=frontend,backend.
Read more >
How to: Set multiple startup projects - Visual Studio (Windows)
In Solution Explorer, select the solution (the top node). · Choose the solution node's context (right-click) menu and then choose Properties.
Read more >
VS2019 Preview 3: Unable to set multiple projects to load
I'm unable to set multiple startup projects. The dropdown is glitching... When I click the dropdown it is blinking, but not showing me...
Read more >
Running multiple projects in Visual Studio at once - Dave Callan
1 – Right click the solution and select 'Set Startup Projects…'. 2 – Select 'Multiple startup projects' and choose two or more projects....
Read more >
Running two project at a time in Visual Studio 2019 - Dot Net ...
Open Visual Studio and go to Solution Explorer. ... By default single project is set as startup project. ... Select multiple project option...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found