Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
An ejected project cannot use the build command anymore

I am new in Angular. I accidentally ejected my project using command-line, i don't remember which command i used. but when i try to run command

ng serve --open

it throws me an error of

An ejected project cannot use the build command anymore.

I also re-installed angular-cli as said in this Stackoverflow Question but no use.

Can anyone help me with this?

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

open the angular-cli.json, you should see this at the top

"project": {
   "name": "proj-name",
   "ejected": true,
}

remove the ejected part and it should work

about 4 years ago · Santiago Trujillo Report

0

once you ejected the project you will get a webpack.config file

And also you can see some commands in package.json script tag

"scripts": {
"ng": "ng",
"start": "webpack-dev-server --port=4200",
"build": "webpack",
"test": "karma start ./karma.conf.js",
"lint": "ng lint",
"e2e": "protractor ./protractor.conf.js",
"pree2e": "webdriver-manager update --standalone false --gecko false --quiet"

},

you can still run the project by using npm start

you can still build the project by using npm run build

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!