Angular CLI - Typescript throws: Cannot read property 'length' of undefined

前端 未结 9 2008
春和景丽
春和景丽 2021-02-07 04:24

I run in angular 4 project with ng serve and i get error

Cannot read property \'length\' of undefined

but I don\'t have any property length in

9条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-07 04:30

    My error was caused by c&p error when creating a small component. I forgot to change path to component's template and styles.

提交回复
热议问题