Angular 2 rc3 router-deprecated package issue

前端 未结 4 2318
遥遥无期
遥遥无期 2021-01-18 06:50

Welcome Angular 2 rc.3!

I use project.json from 5 Min Quickstart to configure my project, but when i run npm install i get follow error:

4条回答
  •  醉酒成梦
    2021-01-18 07:32

    Angular2 RC3 brings back the new router. But the Tutorial continues to mention router-deprecated. Check out the Developer guide which has documentation on the latest Router: https://angular.io/docs/ts/latest/guide/router.html

    As mentioned in the comments, you can give it a try using

    "@angular/router": "3.0.0-alpha.7"
    

提交回复
热议问题