angular: Fail to upgrade to 4.0.0-rc.1
I’m submitting a … (check one with “x”)
[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[x] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
Just tried to execute the suggested command line to upgrade Angular:
npm install @angular/{common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router,animations}@next --save
I brings up the following error message (translated from portuguese):
At line:1 character:29
+ npm install @angular/{common,compiler,compiler-cli,core,forms,http,pl ...
+ ~
Missing argument in the parameters list.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument
Expected behavior Angular upgrade to 4.0.0-rc.1
Minimal reproduction of the problem with instructions
npm install @angular/{common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router,animations}@next --save
What is the motivation / use case for changing the behavior? Try out 4.0.0-rc.1 in a existing project
Please tell us about your environment: @angular/cli: 1.0.0-rc.0 node: 6.9.5 os: win32 x64 @angular/cli: 1.0.0-rc.0 @angular/common: 2.4.8 @angular/compiler: 2.4.8 @angular/core: 2.4.8 @angular/flex-layout: 2.0.0-rc.1 @angular/forms: 2.4.8 @angular/http: 2.4.8 @angular/material: 2.0.0-beta.2 @angular/platform-browser: 2.4.8 @angular/platform-browser-dynamic: 2.4.8 @angular/router: 3.4.8 @angular/compiler-cli: 2.4.8
- Angular version: 2.4.8 (angular core)
-
Browser: not a browser issue
-
Language: Typescript 2.3.0-dev.20170228
-
Node (for AoT issues):
node --version
= 6.9.5
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (7 by maintainers)
@julianobrasil got the same problem
Could not resolve module @angular/router/src/router_config_loader
Did you resolve the issue?The first compile error is different from the others (see bellow: it’s a router_config_loader error). From the second error and on, they are all similar, just changing the package part (core, common etc).
you should make sure to update
@angular/compiler-cli
too in your package.json as the latest version contains@Delagen that’s what we’re explicitly trying to avoid, actually. There should not be breakages from existing component libraries from 2.4.x when upgrading to 4.0.
The original issue here appears to be resolved. Please open a new issue if you can narrow it down to a specific bug.
Was wondering where this was coming from. I did a grep inside my project and the only instance of router_config_loader was inside angular/compiler-cli:
Edit: Yep, I have an old compiler-cli
@BaconLord Nop. I saw this other issue #14513 that shows an error message pointing to problems relating to ngfactory.ts, but found nothing about this particular issue.
@aitboudad so it is an issue concerning the compiler? I don’t have any import like @angular/router/src/router_config_loader.
angular now use Flat ES Modules which means using
@angular/router/src/router_config_loader
path is not possible anymoreBefore:
After:
My mistake. It was just a wrong import statement. But now I see a lot of messages like “ERROR in ./src/$$_gendir/app/app.component.ngfactory.ts”. I’m gonna check them out.