Angular-cli: ng eject fails

Created on 29 Aug 2017  路  3Comments  路  Source: angular/angular-cli

Bug Report or Feature Request (mark with an x)

- [ X] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.3.2
node: 8.0.0
os: darwin x64
@angular/animations: 4.3.5
@angular/common: 4.3.5
@angular/compiler: 4.3.5
@angular/core: 4.3.5
@angular/forms: 4.3.5
@angular/http: 4.3.5
@angular/platform-browser: 4.3.5
@angular/platform-browser-dynamic: 4.3.5
@angular/router: 4.3.5
@angular/cli: 1.3.2
@angular/compiler-cli: 4.3.5

Mac OSX Sierra 10.12.6

Repro steps.

ng eject

The log given by the failure.

ng eject
Cannot read property 'build' of undefined
TypeError: Cannot read property 'build' of undefined
at Promise.resolve.then.then.then.then.then (/Users/foo/Projects/someProject/front/node_modules/@angular/cli/tasks/eject.js:409:24)
at
at process._tickCallback (internal/process/next_tick.js:169:7)

Desired functionality.

Well working would be better :)

Mention any other details that might be useful.

angulacli medium regression bufix

Most helpful comment

I had the same issue, i resolved it by removing following two lines from "script" section from package.json file.

    "start": "ng serve --ec true --port 4201",
    "build": "ng build --prod",

Do not remove the whole "script" section.

All 3 comments

I had the same issue, i resolved it by removing following two lines from "script" section from package.json file.

    "start": "ng serve --ec true --port 4201",
    "build": "ng build --prod",

Do not remove the whole "script" section.

ng eject is no longer provided by Angular CLI.

If you need this feature please use https://github.com/manfredsteyer/ngx-build-plus

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gotschmarcel picture gotschmarcel  路  3Comments

JanStureNielsen picture JanStureNielsen  路  3Comments

donaldallen picture donaldallen  路  3Comments

brtnshrdr picture brtnshrdr  路  3Comments

IngvarKofoed picture IngvarKofoed  路  3Comments