使用以下模板配置AngularJS/Typescript Web应用程序并收到以下错误.
The following error is appearing when I run the application:
0x800a139e - JavaScript runtime error: [$injector:modulerr] Failed to instantiate module app due to:
Error: [$injector:nomod] Module 'app' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
Run Code Online (Sandbox Code Playgroud)
我检查过这个帖子并确保我确实有一个对angular-route.js的引用
app.ts - 更容易查看的版本+ index.html
/// <reference path="./typings/angularjs/angular.d.ts" />
'use strict';
// Create and register modules
var modules = …Run Code Online (Sandbox Code Playgroud) 我正在尝试使这个基本的Watin控制台应用程序工作但是我遇到了以下错误:
"Warning 1 The referenced assembly "WatiN.Core" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. consoletest"
Run Code Online (Sandbox Code Playgroud)
我已经确保将STAThread]属性应用于他们推荐的main方法.
下面是项目的屏幕截图:链接
附加说明:我安装了最新版本的watin(2.1),我设法得到一个类似的应用程序作为Windows类文件运行,但需要能够直接运行这个并看到输出,这就是为什么我正在制作一个Windows控制台应用.
任何帮助将不胜感激:)