Jasmine &引用;失败:没有用于TestingCompilerFactory的提供程序&引用;
我按照这里的说明获得了一个运行wallabyjs的angular cli应用程序示例 我可以通过“npm run test”运行测试,所有测试都可以正常运行,包括通过的3个测试 但是,如果运行wallabyjs,会出现以下错误:Jasmine &引用;失败:没有用于TestingCompilerFactory的提供程序&引用;,jasmine,angular-cli,wallaby.js,Jasmine,Angular Cli,Wallaby.js,我按照这里的说明获得了一个运行wallabyjs的angular cli应用程序示例 我可以通过“npm run test”运行测试,所有测试都可以正常运行,包括通过的3个测试 但是,如果运行wallabyjs,会出现以下错误: AppComponent should render title in a h1 tag [16 ms] Failed: No provider for TestingCompilerFactory!
AppComponent should render title in a h1 tag [16 ms]
Failed: No provider for TestingCompilerFactory!
at Object.<anonymous> src/app/app.component.spec.ts:9:4
Failed: No provider for TestingCompilerFactory!
at Object.<anonymous> src/app/app.component.spec.ts:29:4
AppComponent should have as title 'app' [14 ms]
Failed: No provider for TestingCompilerFactory!
at Object.<anonymous> src/app/app.component.spec.ts:9:4
Failed: No provider for TestingCompilerFactory!
at Object.<anonymous> src/app/app.component.spec.ts:23:4
AppComponent should create the app [9 ms]
Failed: No provider for TestingCompilerFactory!
at Object.<anonymous> src/app/app.component.spec.ts:9:4
Failed: No provider for TestingCompilerFactory!
at Object.<anonymous> src/app/app.component.spec.ts:17:4
AppComponent应在h1标记中呈现标题 [16毫秒]
失败:没有用于TestingCompilerFactory的提供程序!
反对。src/app/app.component.spec.ts:9:4
失败:没有用于TestingCompilerFactory的提供程序!
反对。src/app/app.component.spec.ts:29:4
AppComponent的标题应为“app” [14毫秒]
失败:没有用于TestingCompilerFactory的提供程序!
反对。src/app/app.component.spec.ts:9:4
失败:没有用于TestingCompilerFactory的提供程序!
反对。src/app/app.component.spec.ts:23:4
AppComponent应该创建应用程序 [9毫秒]
失败:没有用于TestingCompilerFactory的提供程序!
反对。src/app/app.component.spec.ts:9:4
失败:没有用于TestingCompilerFactory的提供程序!
反对。src/app/app.component.spec.ts:17:4
…我已经在全球范围内安装了npm和electron等最新的网页包。您有没有解决过这个问题?我得到了同样的失败错误。谢谢试试这里建议的解决方案