The simplest installation of angular2 with webpack

I am working on egghead.io Angular2 tutorials, but they are still using the beta. I am looking at documents for Angular2 Quickstart that point to a more relevant release candidate, but I cannot get the webpack server from the egghead.io lesson for working with angular2 packages, and I'm not quite sure where the hang is.

In package.json:

  "devDependencies": {
    "html-webpack-plugin": "^2.9.0",
    "ts-loader": "^0.7.2",
    "typescript": "^1.7.3",
    "typings": "^0.6.8",
    "webpack": "^1.12.14",
    "webpack-dev-server": "^1.14.0"
  },
  "dependencies": {
    "@angular/common": "^2.0.0-rc.1",
    "@angular/compiler": "^2.0.0-rc.1",
    "@angular/core": "^2.0.0-rc.1",
    "@angular/http": "^2.0.0-rc.1",
    "@angular/platform-browser": "^2.0.0-rc.1",
    "@angular/platform-browser-dynamic": "^2.0.0-rc.1",
    "@angular/router": "^2.0.0-rc.1",
    "@angular/router-deprecated": "^2.0.0-rc.1",
    "@angular/upgrade": "^2.0.0-rc.1",
    "reflect-metadata": "^0.1.3",
    "rxjs": "^5.0.0-beta.8",
    "zone.js": "^0.6.12"
  }

I did not change webpack.config.jsfrom the one presented in the lesson.

When I do npm start(started the webpack server), I keep getting

Error during instantiation of NgZone! (ApplicationRef -> ApplicationRef_ -> NgZone).
Cannot read property 'fork' of undefined

This indicates that it is zone.forknot loading. I updated my file vendor.tsto:

import 'zone.js';
import 'reflect-metadata';

- , . script console.log(zone.fork), , , zone.js. , angular2 - .

+4
1

"rxjs": "^5.0.0-beta.8",

rc.1 .6

-2

All Articles