question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng eject not available at Angular 6.0.0

See original GitHub issue

This is currently an undocumented breaking change for those migrating from 5 to 6, ng eject is temporarily disabled at v6.0.0.

Versions

Angular CLI: 6.0.0
Node: 9.11.1
OS: darwin x64
Angular: 6.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.0
@angular-devkit/build-angular     0.6.0
@angular-devkit/build-optimizer   0.6.0
@angular-devkit/core              0.6.0
@angular-devkit/schematics        0.6.0
@ngtools/webpack                  6.0.0
@schematics/angular               0.6.0
@schematics/update                0.6.0
rxjs                              6.1.0
typescript                        2.7.2
webpack                           4.6.0

Repro steps

  • Try running ng eject

Observed behavior

Running ng eject resulted in the following message:

The 'eject' command has been temporarily disabled, as it is not yet compatible with the new
angular.json format. The new configuration format provides further flexibility to modify the
configuration of your workspace without ejecting. Ejection will be re-enabled in a future
release of the CLI.

If you need to eject today, use CLI 1.7 to eject your project.

Reference: https://github.com/angular/angular-cli/blob/master/packages/angular/cli/commands/eject.ts

Desired behavior

I wasn’t aware of this issue until after I upgraded, note that I did read the release notes. Since ng eject has been removed for now, I expected supporting documentation:

  • Provide information on this in the README as a breaking change. This would help to let folks know about this issue before they attempt to migrate.

  • Provide guidance in the wiki: https://github.com/angular/angular-cli/wiki.

Mention any other details that might be useful (optional)

Possibly related to another issue https://github.com/angular/angular-cli/issues/10593

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:88
  • Comments:36 (3 by maintainers)

github_iconTop GitHub Comments

68reactions
biiiipycommented, Jun 19, 2018

Yes, at this point Angular CLI is dangerously bad to rely on. If at some point some dependency breaks or you need some customization that angular CLI doesn’t support, then you are screwed. And CLI should help you do hard, repetitive, standardized work, not lock you in. That’s why I don’t recommend anybody, apart from quick demos, to use CLI in their projects.

Also, “Eject” feature is kind of nice, but I think it shows the fundamental flaw with Angular CLI - it’s either CLI or plain webpack. It doesn’t enhance existing webpack pipeline, but tries to replace it with it’s own high level construct, and that creates a lot of friction, lock-in, unnecessary compatibility problems etc, and in the end defeats it’s own purpose.

28reactions
raffaelercommented, Jul 2, 2018

@meltedspark First of all thank you for your contribution. On the other hand I am totally disappointed on the silence about this breaking changes. I am not going to adopt this version of Angular for the time being. And I am not going to adopt the million-th piece of javascript in addition to the 67K file for an empty application. Again, thanks but all of this is terrible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular-cli where is webpack.config.js file - Stack Overflow
There's a nice way to eject webpack.config.js from angular-cli. Just run: $ ng eject. This will generate webpack.config.js in the root folder of...
Read more >
ng eject not working in the new version of the CLI - Medium
The 'eject' command has been temporarily disabled, as it is not yet compatible with the new angular.json format.
Read more >
What's new in Angular CLI 6.0? - Ninja Squad
The ng update command has been introduced in 1.7 but was a glorified npm install . With this release, it starts to express...
Read more >
angular/angular-cli - Gitter
I updated angular and cli to latest rc. Now some packages that are conditionally using node-js modules (checking first that it is not...
Read more >
Angular CLI v6.0.0 Release - GitClear
Also, please note that there is a blog post for version 6 here. ng eject. The 'eject' command has been temporarily disabled, as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found