question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plunker throws "Zone is not defined"

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
DzmitryShylovichcommented, Nov 22, 2016

Workaround is to use previous version of zone.js:

<script src="https://unpkg.com/zone.js@0.6.26/dist/zone.js"></script>
<script src="https://unpkg.com/zone.js@0.6.26/dist/long-stack-trace-zone.js"></script>
1reaction
ocombecommented, Nov 22, 2016

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found