Just started experimenting with Angular 2 and encountering an issue when importing zone.js
as a global variable:
https://i.stack.imgur.com/gUFGn.png
List of my packages along with their versions:
"dependencies": {
"angular2": "2.0.0-beta.3",
"es6-promise": "3.0.2",
"es6-shim": "0.33.13",
"expose-loader": "^0.7.1",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.0",
"zone.js": "0.5.11"
}
Included zone.js in my index.ts
using import 'expose?Zone!zone.js';
.
Furthermore, the index.ts
serves as the main entry point in the webpack.config.js
file.
Seeking guidance on the correct method to import zone.js
by exposing it as a global variable (utilizing expose-loader due to WebPack usage).