-
Notifications
You must be signed in to change notification settings - Fork 12k
fix(@angular-devkit/build-angular): error when both baseUrl
and devServerTarget
are used in protractor
#13614
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
Conversation
@@ -81,7 +85,7 @@ export class ProtractorBuilder implements Builder<ProtractorBuilderOptions> { | |||
} | |||
|
|||
// Compute baseUrl from devServerOptions. | |||
if (options.devServerTarget && builderConfig.options.publicHost) { | |||
if (builderConfig.options.publicHost) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is never called when options.devServerTarget
is falsy
concatMap(() => options.devServerTarget ? this._startDevServer(options) : of(null)), |
…vServerTarget` are used in protractor Users cannot use both baseUrl and devServerTarget, and the later superseeds the baseUrl. Fixes #13611
Users should use baseUrl property in the Protractor config file
@filipesilva, PR updated following the team meeting I left the error message, as it's best to error out rather than have undefined behaviour, for the time being until this option is removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@clydin PTAL as well.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
fix(@angular-devkit/build-angular): error when both
baseUrl
anddevServerTarget
are used in protractorUsers cannot use both baseUrl and devServerTarget, and the later superseeds the baseUrl.
Fixes #13611