Ng build production commands not working

I tried

> ng build --prod
> ng build --aot --target=production
> ng build --base-href="/" --env=prod

but none seems to work

Hey there,

what does none seems to work mean?
Actually nothing?
What happens when you remove the build folder?

giving error like
Unknown option: '--target'
Unknown option: '--env

ng build --prod=true is now working I deleted budge property from angular.json
my goal is to deploy project on heroku but its giving error

here is the repo

What do you not understand when you read the error?
It seems very descriptive.
What did you search for on a search engine and what happened next?

1 Like