在过去的一周,我一直在试图配置和使用以下配置启动一个非常简单的项目:角2时,Visual Studio 2015年更新1,类型脚本配置
角2时,Visual Studio 2015年更新1,类型脚本配置
我有一个tsconfig.Json在我与以下内容项目的根:
{
"compilerOptions": {
"rootDir": "src",
"outDir": "web/js",
"target": "es5",
"module": "system",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"listFiles": true
},
"exclude": [
"wwwroot",
"node_modules"
],
"filesGlob": [
"app/**/*.ts"
]
}
我可以看到在解决方案资源管理,棱角分明的虚拟项目,并在角度提到安装所有需要的软件包。 io 5分钟教程(https://angular.io/guide/quickstart)。
这是我在我的App.ts:
import {bootstrap, Component} from 'angular2/angular2';
@Component({
selector: 'my-app',
template: '<h1>My First Angular 2 App</h1>'
})
class AppComponent { }
bootstrap(AppComponent);
我得到的错误是:
符号“组件不能得到妥善解决,可能是它坐落在一个无法访问的模块'
相同的配置工作在VS代码没有问题。
如果你能证明我错过了什么,我会很感激。
谢谢。
遇到ReSharper的同样的问题启用。禁用时,一切都恢复正常。 – suf
你可以找出问题出现的原因,以及如何在底部http:// stackoverflow的downvoted答案中解决问题。com/questions/34592390/visual-studio-2015-update-1-enterprise-with-resharper-10-ultimate-can-be/34598942#34598942 –
我可以证实这个问题已经解决......我用10.1 EAP 7。 –