DrMabuse23 / generator-ionic-2

MIT License
24 stars 3 forks source link

'Zone is not defined' error after generator installed #9

Closed nicholasglazer closed 8 years ago

nicholasglazer commented 8 years ago

Ubuntu 15.10 npm -v 3.4.1 node -v 5.0.0

bug_generator-ionic2

Have this error after installation. Any ideas?

nicholasglazer commented 8 years ago

I solved my problem with adding this code to main.js

import {enableProdMode} from 'angular2/core';
enableProdMode();
DrMabuse23 commented 8 years ago

check this out http://stackoverflow.com/questions/34359303/zone-is-not-defined-for-ngzone-angular22-0-0-beta-0

angular2\ts\src\core\zone\ng_zone.ts@352 or angular2/src/core/zone/ng_zone.js

Zone.longStackTraceZone, {onError: function(e) { ngZone._notifyOnError(this, e); }});

//To

zone.longStackTraceZone, {onError: function(e) { ngZone._notifyOnError(this, e); }});