ericmdantas / generator-ng-fullstack

Client, server or fullstack - it's up to you. ng-fullstack gives you the best of the latest.
MIT License
704 stars 103 forks source link

Bump Angular from 2.x to 4.x #254

Closed ericmdantas closed 7 years ago

ericmdantas commented 7 years ago

http://angularjs.blogspot.com.br/2017/03/angular-400-now-available.html

ericmdantas commented 7 years ago

When trying to compile, I'm getting the following error:

node_modules/@angular/router/src/router_module.d.ts(140,41): error TS1110: Type expected.
ericmdantas commented 7 years ago

Updated tsc to 2.2.2 and now I'm getting:

node_modules/@angular/core/src/change_detection/differs/iterable_differs.d.ts(15,48): 
   error TS2304: Cannot find name 'Iterable'.
luiscabanillas commented 7 years ago

Anything on this? i'm thinking of using this generator but I want to use Angular 4.x, is this error still popping up?

ericmdantas commented 7 years ago

Hello, @luiscabanillas.

I tried to update it and got some typing errors (as described above) and I haven't touched it since then. I'm kinda busy these days, but I might be free this weekend, so I'll try to release a patch with the bump.

In the meantime, if you're interested, you can send a PR and I'll gladly merge it.

ericmdantas commented 7 years ago

I found https://github.com/angular/angular/issues/14595#issuecomment-289303911, which seems to fix the errors.

I'll release a new version in master and next with the bump.

ericmdantas commented 7 years ago

Versions published with the ng2 bump to 4.x.

# Install v1.9
$ npm i -g generator-ng-fullstack

# Install next (with some stuff from v1.10)
$ npm i -g generator-ng-fullstack@next
ludoo0d0a commented 7 years ago

Are these diffs the only things to do to upgrade an already generated app to 4.x ? (^2.4.4-> ^4.1.0 + tsconfig.json: "noImplicitAny": false, "skipLibCheck": true ) https://github.com/ericmdantas/generator-ng-fullstack/commit/3c57a137632f5f004357030b57b0e736ac1a106b

ericmdantas commented 7 years ago

yup