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

前端 未结 9 2006
春和景丽
春和景丽 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:53

    You might be missing one or more files that typescript is trying to process. To find out which file you are missing just add

    console.log(fileName);

    at the starting of the createSourceFile function at node_modules/typescript/lib/typescript.js file.

提交回复
热议问题