Angular4 What definition of Iterable should I use

后端 未结 2 448
闹比i
闹比i 2020-12-12 03:45

I have upgraded my app to the latest Angular 4 (beta-8) version. However I keep having the following error :

@angular\\core\\src\\change_detecti

2条回答
  •  感情败类
    2020-12-12 04:07

    Following the migration stated in their changelog you should add es2015.iterable as a lib inside your tsconfig.json:

    {
      ...,
      "compilerOptions" : {
         ...,
         "lib": ["es6", "dom", "es2015.iterable"]
       }
    }
    

提交回复
热议问题