Angular2 5 minute install bug - require is not defined

后端 未结 7 1629
一个人的身影
一个人的身影 2020-11-28 12:22

I\'m doing the Angular2 5 minute quick start.

About half way through the tutorial now, I have the following files setup correctly:

  • index.html,
7条回答
  •  [愿得一人]
    2020-11-28 13:08

    I used "invalid" import:

    import {UrlSegment} from '@angular/router/index';
    

    After removing /index it started to compile again.

提交回复
热议问题