Reputation: 337
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
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