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.

error TS1086: An accessor cannot be declared in an ambient context.

Last updated at Posted at 2020-12-07

ng s --o実行時に「 error TS1086: An accessor cannot be declared in an ambient context.」というエラーが発生。

@ng-bootstrapとのバージョンに互換性が無かったので下記コマンドでAngularをupdate。

ng update angular/core@{{更新後のバージョンナンバー}} angular/cli@{{更新後のバージョンナンバー}}

「--force」「--allow-dirty」が必要なケースもあります。

[参考]
https://stackoverflow.com/questions/60131331/error-ts1086-an-accessor-cannot-be-declared-in-an-ambient-context-in-angular-9

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?