-
Notifications
You must be signed in to change notification settings - Fork 12k
chore: upgrade angular version to rc6 #1937
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
Conversation
@@ -15,7 +15,6 @@ export const getWebpackProdConfigPartial = function(projectRoot: string, appConf | |||
}, | |||
plugins: [ | |||
new WebpackMd5Hash(), | |||
new webpack.optimize.DedupePlugin(), | |||
new webpack.optimize.UglifyJsPlugin(<any>{ | |||
mangle: { screw_ie8 : true, keep_fnames: true }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was discussion in the core Angular project about a fix there that would remove the need for "keep_fnames: true" - I assume from this unchanged here, that such a fix did not make it in to RC6?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not aware of that discussion, I was just taking a crack at updating. There's still an issue with e2e tests, but I wanted to get something pushed up for others to review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah @Brocco we can remove that prop now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @TheLarkInn I'll strip that out and re-push, but I don't expect e2e to work based upon that change
With this and a newly generated project, when I serve I'm getting:
That line without sourcemaps contains: a - webpack: 2.1.0-beta.21 Edit: I see that webpack was changed from |
Tried reverting to [email protected] and originally with 2.1.0-beta.21 and it errors out with |
Whoa whoa not Webpack 2.0, TS 2.0.0. webpack version is 100% correct |
@TheLarkInn Thanks that makes a lot more sense than reverting Webpack. alas, I'd already reverted to TS 2.0.0 and it is still Uncaught TypeError: Cannot read property 'Emulated' of undefined, |
I got the same error, compile error on TypeScript "^2.0.0". After downgrade TypeScript to "2.0.0" the application compiles but get the |
Hello, I think, that in addon/ng2/blueprints/ng2/files/package.json should be changed typescript version to 2.0.2 because the angular rc6 depends on new Tried that on my clone of this repo and ng serve works without any errors. Edit1: also in /package.json should be changed the typescript version to 2.0.2 |
@JiriBalcar We can't require TS 2.0.2 until #1901 and #1917 are dealt with. If you're getting it to work with a 2.0.2 dependency I'd check to see what tsc is being called because it's probably not the one you think you are. |
@ValeryVS I thought the same but the errors also occurs with rc6. I think that it is because new UMD bundles. I think, that some changes in bundles loader will have to be made in angular-cli. But I do not know Webpack that well. Does anybody knows how to do that. In angular changelog is example for SystemJS. |
I was able to get rc6 working by downgrading webpack to 2.1.0-beta.19 with existing CLI webpack config Edit: Using [email protected] |
27730e7
to
a28f721
Compare
Instead of downgrading webpack, you should be able to add This commit webpack/webpack@dc50c03 found in 2.1.0-beta.20+ seems to be the issue. It is causing webpack to use the new es2015 bundles in rc6. |
@clydin this doesn't make sense, RC6 is publishing es2015 bundles, shouldn't webpack be using them from the module field. I feel I'm missing something. |
If it works with the regular bundle but not the es2015 bundle, then something is either wrong with the bundle (missing For example, The modules spec appears to be moving in a direction that will forbid anything but importing default from commonjs modules, so even EDIT: I took a quick look into the UMD and ES6 modules builds of rc6. As the UMD build has no There doesn't seem to be anything wrong with the ES6 export itself, though; would have to look at the real output from webpack to see if it isn't doing anything funny like |
I am guessing these changes weren't part of 1.0.0-beta.11-webpack.8 ?? |
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. |
No description provided.