2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Angular CLIでServiceを生成するとe2eディレクトリ内に入ってしまう場合の対応

Last updated at Posted at 2018-07-23

概要

  • Angular本体を6系にメジャーバージョンアップした後に発生
  • ng g service XXXXX とすると、 e2e/ 内にサービスが生成されてしまう

対策

  • angular.json を下記のように書き換えればOK (プロジェクト名がmy-appの場合)

変更前

    "my-app-e2e": {
      "root": "",
      "sourceRoot": "e2e",

変更後

    "my-app6-e2e": {
      "root": "e2e/",
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?