Skip to content

Instantly share code, notes, and snippets.

View jfmercer's full-sized avatar

John Mercer jfmercer

View GitHub Profile
@Bolza
Bolza / ng2_trblshoot.md
Last active October 9, 2016 22:08
NG2 Upgrade Troubleshoot

Reflect-metadata error

  • adding import 'zone.js' and 'reflect-metadata'
  • System.config.babelOptions.stage = 1

RXJS missing / errors

  • update NG2 to >=2.0.0-beta.9, doesnt require external rxjs anymore

Transpiler SyntaxError on any Typescript annotation as Unexpected token

  • npm install --save-dev babel-plugin-transform-decorators-legacy babel-plugin-transform-class-properties babel-plugin-transform-flow-strip-types babel-preset-es2015 babel-plugin-angular2-annotations
  • in gulpfile task add plugins: 'angular2-annotations','transform-decorators-legacy','transform-class-properties','transform-flow-strip-types'