<!--
Output from: `ng --version`.
If nothing, output from: `node --version` and `npm --version`.
Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
-->
*Step 1 > ng serve
*Step 2 > ng e2e --no-serve
> ng "e2e" "--no-serve"
Port 4200 is already in use. Use '--port' to specify a different port.
What would like to see implemented? --no-serve option to be back
What is the usecase? Very nice to be able to run e2e tests without the compile step.
What did you expect to see? The same behavior as in previous CLI version.
Has the --no-serve functionality been moved elsewhere? I haven't been able to find any documentation on this in the release notes (mostly googling).
Duplicate of #10741
In the angular.json file, in the subsection -> "projects" -> "projectName-e2e" -> "architect" ->"options" - remove the "devServerTarget" option,
While running the e2e scripts, use command ng e2e --project=projectName-e2e
You don't have to change angular.json, you can temporarily have the same effect by running ng e2e --dev-server-target=
(yes, empty dev-server-target)
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
You don't have to change angular.json, you can temporarily have the same effect by running
ng e2e --dev-server-target=
(yes, empty dev-server-target)