cannot find module 'angular2/core'

前端 未结 15 1621
臣服心动
臣服心动 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:40

    Developing with the ASP.NET Core Angular 2 Starter Application template from Mads Kristensen. I had a similar problem starting a new directory with Typescript files.

    My solution was more simple than modifying the project file. I just copied the tsconfig.json from the ClientApp folder where all of the typescript files were to my new folder.

提交回复
热议问题