angular / zone.js

Implements Zones for JavaScript
https://github.com/angular/angular/tree/master/packages/zone.js/
MIT License
3.25k stars 408 forks source link

Angular elements in another angular project: ERROR Error: Expected to not be in Angular Zone, but it is! #1235

Closed shai93 closed 5 years ago

shai93 commented 5 years ago

ERROR Error: Uncaught (in promise): TypeError: n.e is not a function TypeError: n.e is not a function at o (main.054737874ce72b1240e0.js:1) at t.loadFactory (main.054737874ce72b1240e0.js:1) at t.load (main.054737874ce72b1240e0.js:1) at t.loadModuleFactory (main.054737874ce72b1240e0.js:1) at t.load (main.054737874ce72b1240e0.js:1) at e.project (main.054737874ce72b1240e0.js:1) at e._tryNext (main.054737874ce72b1240e0.js:1) at e._next (main.054737874ce72b1240e0.js:1) at e.next (main.054737874ce72b1240e0.js:1) at t._subscribe (main.054737874ce72b1240e0.js:1) at t._trySubscribe (main.054737874ce72b1240e0.js:1) at t.subscribe (main.054737874ce72b1240e0.js:1) at t.call (main.054737874ce72b1240e0.js:1) at t.subscribe (main.054737874ce72b1240e0.js:1) at t.call (main.054737874ce72b1240e0.js:1) at new v (polyfills.c2a982f40ec7317bc92d.js:1) at Z (polyfills.c2a982f40ec7317bc92d.js:1) at Z (polyfills.c2a982f40ec7317bc92d.js:1) at polyfills.c2a982f40ec7317bc92d.js:1 at e.invokeTask (polyfills.c2a982f40ec7317bc92d.js:1) at Object.onInvokeTask (main.054737874ce72b1240e0.js:1) at e.invokeTask (polyfills.c2a982f40ec7317bc92d.js:1) at Object.onInvokeTask (main.054737874ce72b1240e0.js:1) at e.invokeTask (polyfills.c2a982f40ec7317bc92d.js:1) at t.runTask (polyfills.c2a982f40ec7317bc92d.js:1) at y (polyfills.c2a982f40ec7317bc92d.js:1)

ERROR Error: Expected to not be in Angular Zone, but it is! at new v (polyfills.c2a982f40ec7317bc92d.js:1) at Function.t.assertNotInAngularZone (main.054737874ce72b1240e0.js:1) at Object.next (main.054737874ce72b1240e0.js:1) at e.object.i [as _next] (main.054737874ce72b1240e0.js:1) at e.__tryOrUnsub (main.054737874ce72b1240e0.js:1) at e.next (main.054737874ce72b1240e0.js:1) at e._next (main.054737874ce72b1240e0.js:1) at e.next (main.054737874ce72b1240e0.js:1) at e.next (main.054737874ce72b1240e0.js:1) at e.emit (main.054737874ce72b1240e0.js:1) at main.054737874ce72b1240e0.js:1 at e.invoke (polyfills.c2a982f40ec7317bc92d.js:1) at Object.onInvoke (main.054737874ce72b1240e0.js:1) at e.invoke (polyfills.c2a982f40ec7317bc92d.js:1) at t.run (polyfills.c2a982f40ec7317bc92d.js:1)

paulogr commented 5 years ago

I'm having the same problem here after upgrade to final v8

JiaLiPassion commented 5 years ago

@shai93, @paulogr, please provide more information.

paulogr commented 5 years ago

@JiaLiPassion, for me, feel free to close this issue.

JiaLiPassion commented 5 years ago

Sure, I will close it for now. please create issue in angular repo if the issue still exists.