Angular2 Final Release - “Error: Angular requires Zone.js prolyfill”

前端 未结 5 720
醉话见心
醉话见心 2021-02-18 16:09

I have upgraded from RC4 to the Final release of Angular2. When I run npm start, the app is stuck on \'Loading...\' the only error I get is about Zone.js:

<

5条回答
  •  隐瞒了意图╮
    2021-02-18 17:02

    This error can also occur when reverting a commit or changing a lot of files and not restarting the development server. Just stop the angular cli server, and try running ng serve again. This solution worked for me, and it wasn't obvious to restart the angular development server at first.

提交回复
热议问题