cannot find module 'angular2/core'

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

    For VS2015, go to Tools -> Options -> Text Editor -> TypeScript -> Project -> General then tick "Automatically compile TypeScript files which are not part of a project" then select "Use CommonJS code generation for modules.."

提交回复
热议问题