preboot / angular-webpack

A complete, yet simple, starter for Angular v2+ using webpack
MIT License
1.29k stars 556 forks source link

Set TypeScript version 2.1.6 explicitly avoid Jasmine Errors #296

Closed misterzik closed 7 years ago

misterzik commented 7 years ago

Errors before upgrading to new version,

TS1005: '=' expected. TS2371: A parameter initializer is only allowed in a function or constructor implementation. TS2304: Cannot find name 'keyof'. From (unknown) [at-loader] node_modules/@types/jasmine/index.d.ts

Foxandxss commented 7 years ago

Thanks! I always see the errors before hand at work (https://github.com/angular/quickstart/pull/381 / https://github.com/angular/angular.io/pull/3236) but I forget about this repo.

I can't merge this one tho, the solution is not to update Typescript but to lock the types into a previous version. Angular v2 doesn't like TS 2.1, so until we get Angular v4, we need to stay with 2.0.10.

misterzik commented 7 years ago

Awesome, Muchas gracias @Foxandxss \m/

sermormo commented 7 years ago

@misterzik Hey man , i just signed upto this site, to thank you.. I am pretty new using this stuff and i was stuck with this error.. Once again thanks..you rocks.. Gracias

ortisan commented 7 years ago

@misterzik Thanks!