Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

187
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda