Angular 2 - 404 traceur not found

后端 未结 17 3149
故里飘歌
故里飘歌 2020-12-03 02:34

I\'ve followed the starting guide and expanded a little upon for a previous angular 2 version. I\'ve updated my revision and changed everything accordingly. When I am runnin

17条回答
  •  难免孤独
    2020-12-03 03:01

    I've had the same issue and it couldn't load one of my files. I opened the file and everything was correctly there.

    The problem was that I've had a snippet commented out in the same file. Snippet contained this keyword "export class". Even though it was commented out, it was parsed by Angular.

    Make sure that you don't have "export class" keywords in your comments, and delete the temporary commented code just to check if it works without it.

提交回复
热议问题