0
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 3 years have passed since last update.

【Angular】プロジェクト作成後、起動できない【エラー】

Last updated at Posted at 2020-05-08

初投稿、、言葉足らずだったら申し訳ないです。

環境

angular_version.png

なんかいつもより、パッケージが増えてる気が、、、?

エラー内容

ng new プロジェクト名

で新規プロジェクトを作成後、
ローカルサーバで立ち上げようとしたところエラーが発生しました。

error.png

TypeError: Cannot read property 'flags' of undefined

というエラー。。。。。

解決策

下記コマンドで解決。

npm install @angular/core@9.1.4 @angular/animations@9.1.4 @angular/common@9.1.4 @angular/forms@9.1.4 @angular/platform-browser@9.1.4 @angular/router@9.1.4 @angular/platform-browser-dynamic@9.1.4 @angular/compiler@9.1.4 @angular/compiler-cli@9.1.4 @angular/language-service@9.1.4

ng build

数時間ほど試行錯誤しているなかで、あるサイトを見つけ解決しました。
ERROR in TypeError: Cannot read property 'flags' of undefined

ありがたい、、、

0
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
0
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?