gurrms95
gurrms95

Reputation: 27

angular : I want an angular build. But there's an error

I want to upload my Angular project on the server. However, "ng build" results in an error.

**The build command requires to be run in an Angular project, but a project definition could not be found.**

Upvotes: 0

Views: 491

Answers (1)

DonJuwe
DonJuwe

Reputation: 4563

Seems you try to run ng build outside an angular project. Navigate to your project root and try again. From the docs:

Must be executed from within a workspace directory.

Upvotes: 1

Related Questions