Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
I';I使用angular cli:1.0.0-beta.10没有RouterOutletMap的提供程序_Angular_Angular2 Routing_Angular Cli - Fatal编程技术网

I';I使用angular cli:1.0.0-beta.10没有RouterOutletMap的提供程序

I';I使用angular cli:1.0.0-beta.10没有RouterOutletMap的提供程序,angular,angular2-routing,angular-cli,Angular,Angular2 Routing,Angular Cli,我对如何使用@angular/router 3.0.0-beta.2实现angular cli:1.0.0-beta.10的路由感到困惑。我收到一个错误,RouterOutletMap没有提供程序,非常感谢您的帮助 我的代码是: app/app.component.html 我不知道这个路由器版本是否应该与RC.5之前的Angular2版本配合使用 在RC.5中,这看起来像 @NgModule({ imports: [ routing ], ... providers:

我对如何使用@angular/router 3.0.0-beta.2实现angular cli:1.0.0-beta.10的路由感到困惑。我收到一个错误,RouterOutletMap没有提供程序,非常感谢您的帮助

我的代码是:

app/app.component.html
我不知道这个路由器版本是否应该与RC.5之前的Angular2版本配合使用

在RC.5中,这看起来像

@NgModule({
  imports:      [ routing ],
  ...
  providers:    [ appRoutingProviders ],
})
有关更多详细信息,请参阅


在使用cli时,我尝试使用npm install angular cli@angular/tsc wrapped-save dev(npm 3.10.6)进行升级。这导致了很多依赖项错误,因此看起来还没有准备好使用yetI将我的项目依赖项替换为快速入门、运行npm安装和我已启动并运行:-)您知道最新版本angular cli的解决方案吗?抱歉,这不是我的专业领域,但我相信其他人会回答。对此我表示怀疑:|在我能让它发挥作用之前,我完全陷入了开发中。。太令人沮丧了