ERROR in无法解析模块@ angular / router / src / router_config_loader

当我切换到Angular4.0.0-rc.1时,我在构建期间遇到错误(npm start):

ERROR in Could not resolve module @angular/router/src/router_config_loader

它是否已知问题?

最佳答案 这是以下解决方案:

Cannot Upgrade a Existing Angular Cli project to Angular 4 Rc1

npm install @angular/common@next --save
npm install @angular/compiler@next --save
npm install @angular/compiler-cli@next --save
npm install @angular/core@next --save
npm install @angular/forms@next --save
npm install @angular/http@next --save
npm install @angular/platform-browser@next --save
npm install @angular/platform-browser-dynamic@next --save
npm install @angular/platform-server@next --save
npm install @angular/router@next --save
npm install @angular/animations@next --save
点赞