File 'app/hero.ts' is not a module error in the console, where to store interfaces files in directory structure with angular2?

后端 未结 24 2004
无人共我
无人共我 2020-12-13 07:55

I am doing the angular2 tutorial at this address: https://angular.io/docs/ts/latest/tutorial/toh-pt3.html I have put the hero interface in a single

24条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 08:23

    I was facing same issue, tried restarting my server, reopening editor but computer restart did the magic.

    P.S: I was facing issue on a windows machine and issue occurred when I moved module into a new folder.

提交回复
热议问题