cannot find module 'angular2/core'

前端 未结 15 1820
臣服心动
臣服心动 2020-12-23 16:10

These red squiggly lines say cannot find module \'angular2/core\',cannot find module \'angular2/router\',cannot find module \'angula

15条回答
  •  难免孤独
    2020-12-23 16:41

    1. In Visual Studio 2015, go to "Tools" menu and click on "Options...". You will be able to see a tree structure on the left side of the opened window.
    2. Expand "Projects and Solutions" and then select "External Web Tools". Now move "$(PATH)" entry above the "$(DevEnvDir)" entry.
    3. Click OK. Restart the Visual Studio.
    4. Now right click on the "package.json" file in the solution explorer and click on "Restore Packages".

提交回复
热议问题