Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular JSON browserTarget is deprecated

Tags:

angular

borwserTarget show deprecated in my angular json file and if am using builtarget instaed of browserTarget then Data path "" must have required property 'browserTarget'.this warning is show, how can i fix this,i am new in angular ,if anyone know, please let me know

angular Json screenshot

like image 272
Error99 Eroor Avatar asked May 15 '26 05:05

Error99 Eroor


1 Answers

Check your Angular version and make sure it is up-to-date. And then this:

In your angular.json ... buildTarget:

"serve": {
  "builder": "@angular-devkit/build-angular:dev-server",
  "configurations": {
    "production": {
      "buildTarget": "Flight:build:production"
    },
    "development": {
      "proxyConfig": "proxy.conf.js",
      "buildTarget": "Flight:build:development"
    }
  },
  "defaultConfiguration": "development"
},
like image 92
Thomas Cayne Avatar answered May 17 '26 00:05

Thomas Cayne



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!