katie77
katie77

Reputation: 1811

Angular CLI: ng build warning in TFS Build step

I have an angular project that I am trying to build though Azure DevOps. When I run the ng build on a library project, there are some warnings

ex(##[error]WARNING: autoprefixer: D:\Agent_work\1\s\Test\projects\test-library\src\components\test.component.css:4:5: start value has mixed support, consider using flex-start instead)

The build step fails because of this. the command for this step is "ng build test-library"

Is there a way in TFS or a setting on ng build to ignore these warnings?

Upvotes: 0

Views: 499

Answers (2)

Hugh Lin
Hugh Lin

Reputation: 19461

You can try to change justify-content: start property to justify-content: flex-start.

enter image description here

For details ,please refer to this document.

Upvotes: 0

Krzysztof Madej
Krzysztof Madej

Reputation: 40779

Please add continueOnError to your task:

- task: string  # reference to a task and version, e.g. "VSBuild@1"
  condition: expression     # see below
  continueOnError: boolean  # 'true' if future steps should run even if this step fails; defaults to 'false'
  enabled: boolean          # whether or not to run this step; defaults to 'true'
  timeoutInMinutes: number  # how long to wait before timing out the task
  target: string            # 'host' or the name of a container resource to target

or here if you use classic pipelines: enter image description here

However I would recommend you to get rid of this warning.

Upvotes: 1

Related Questions