Connect2sky
Connect2sky

Reputation: 337

Remove warning "Option baseHref is deprecated, use baseHref option in the browser builder itself"

I upgraded the Angular version of my project to version 11, and then I got an error while running: "Option baseHref is deprecated, use baseHref option in the browser builder itself".

I tried to put baseHref: "/certs/" in angular.json but still I'm getting the error.

Please help me to get rid out of this error.

Thanks in advance :)

Upvotes: 5

Views: 6255

Answers (1)

user472749
user472749

Reputation: 459

In angular.json it needs to go under the options for build-angular:browser. See the fragment below:

"builder": "@angular-devkit/build-angular:browser",
"options": {
   "baseHref": "/ui/",
   "deployUrl": "/ui/"

Upvotes: 6

Related Questions