New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to upgrade to 4.0.0-rc.1 #14795
Comments
Just add in your
|
@DzmitryShylovich I updated my dependencies. It worked. Now the compiler is complaining about NgControl. Aparently something changed about it. Was it deprecated or replaced with something else? |
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. |
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).
|
@julianobrasil got the same problem |
angular now use Flat ES Modules which means using Before: import { ROUTES } from "@angular/router/src/router_config_loader"; After: import { ROUTES } from "@angular/router"; |
@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. |
@julianobrasil check your third-party dependencies, for example ui-router-ng2 |
@aitboudad @julianobrasil Try disabling MaterialModule, just disabled it and worked again for me. Edit: It was disabling HammerJS, not MaterialModule that solved the issue. |
@aitboudad, unfortunatly my project is almost 100% using angular.io technologies (Angular + Angular Material 2). The 'almost' is because I use ng2-pagination, but so far as I know it doesn't use any routing feature. |
@DuncanLewis Tried it here, but still got the error. I'll try disabling material after lunch. Edit: Actually I reallize that disabling Material over here isn't so quick. I have at least 20 files using mdsnackbar (more than once in each file) that would miss the absence of Material. I'll wait for some other fix (if, of course, it's really a bug). |
@julianobrasil if you use thirdparty libraries even from author of framework you often cannot to upgrade core to latest version because of dependent library does not updated synchronously. So read docs, changelogs (breaking changes parts read two times), and of cause source as the one source of truth. And simply wait for dependent library be ready for new version of core |
@Delagen you're right. This is the case with angular and material (same umbrella project, but not at the same point in evolution). I'm gonna wait for the material team (not blaming material for the problem, but there are material error messages related to it's use of ). |
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: node_modules/@angular/compiler-cli/src/ngtools_impl.js:var ROUTER_MODULE_PATH = '@angular/router/src/router_config_loader'; Edit: Yep, I have an old compiler-cli |
you should make sure to update ROUTER_MODULE_PATH = '@angular/router'; |
@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. |
Opened new issue #14817 with the same title. |
@robwormald As someone said at angular 2 final launch event "we will try to not break the code more than once every 6 months" (or something similar, cannot find video :sad: ) |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a ... (check one with "x")
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):
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
Browser: not a browser issue
Language: Typescript 2.3.0-dev.20170228
Node (for AoT issues):
node --version
= 6.9.5The text was updated successfully, but these errors were encountered: