Plunker throws "Zone is not defined"
See original GitHub issueI’m submitting a … (check one with “x”)
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
Open the Plunker link provided by the issue template, check the browser console.
Expected behavior
Minimal reproduction of the problem with instructions
http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
- Angular version: 2.0.X
- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Chrome on Linux
-
Language: [all | TypeScript X.X | ES6/7 | ES5] only tested with TypeScript
-
Node (for AoT issues):
node --version
=
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:7 (6 by maintainers)
Top Results From Across the Web
ReferenceError: Zone is not defined - angular - Stack Overflow
I had the same problem and was able to solve it by moving the mock window/document code below the line "import 'zone.js/dist/zone-node'", ...
Read more >0.7.0 is breaking my angular project · Issue #511 - GitHub
Hi, If I switch to 0.7.0, I get this error : unpkg.com/zone.js@0.7.0/dist/zone.js:21 Uncaught ReferenceError: Zone is not defined at ...
Read more >Angular with Zone.js? - Plunker
addEventListener('click', throwError); } function throwError() { throw new ... { zone[_property] = data[property]; } // set the new zone's hook (replacing the ...
Read more >ZoneJs Fix Demo - Plunker
runCount++; if (task.zone != this) throw new Error('A task can only be run in the zone which ... 'undefined' && self instanceof WorkerGlobalScope);...
Read more >Patched zone.js without modifications to MutationObserver
hasTask = function (targetZone, isEmpty) { // hasTask should not throw error so other ZoneDelegate // can still trigger hasTask callback try {...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Workaround is to use previous version of zone.js:
Ok fixed it by using the previous zonejs release, if anyone need one you can use this until the zonejs bug is resolved: http://plnkr.co/edit/JNLFF9qgQJh9t4cBkir7