Angular2 5 minute install bug - require is not defined

后端 未结 7 1714
一个人的身影
一个人的身影 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:15

    I'm using angular-cli and it now uses webpack but I was getting this error when loading css. I added declare let require: any; before my component and now it works.

提交回复
热议问题