Questions tagged [zonejs]

Implements Zones for JavaScript

Links

127 questions
3
votes
4 answers

EXCEPTION: Error: Uncaught (in promise): Expected 'styles' to be an array of strings

I'm working on angular2 "2.0.0-rc.1" But zoneJS is giving following error Error: Uncaught (in promise): Expected 'styles' to be an array of strings. at resolvePromise (zone.js:538) at zone.js:515 at ZoneDelegate.invoke (zone.js:323) …
Akhilesh Kumar
  • 9,085
  • 13
  • 57
  • 95
3
votes
1 answer

UnsubscriptionError thrown on first RX subscription

I am developing an Angular2 app for a couple of weeks now, and I ran into this a couple of days back. The issue happens on the very first call to subscribe or toPromise on an rxJS stream, and doesn't seem to break app behaviour at all. It does,…
Tiago Roldão
  • 10,629
  • 3
  • 29
  • 28
2
votes
0 answers

Detect if a zone.js patch is loaded?

Hi I need to find a way to detect that an app imports zone-patch-fetch. It's imported like following : import 'zone.js/plugins/zone-patch-fetch'; Is there a way to do that ?. Stackblitz demo
Matthieu Riegler
  • 31,918
  • 20
  • 95
  • 134
2
votes
1 answer

Zone js Unhandled Promise rejection

I am receiving this error in Chrome dev tools console when calling a function in an external library on page load in my Angular application: "Unhandled Promise rejection: Cannot read properties of undefined (reading 'page') ' Zone: ; Task:…
kingbiz
  • 31
  • 1
  • 3
2
votes
0 answers

How to disable ajax patching by zonejs in webcomponents

we are using webcomponents in legacy project and we have an issue that zone.js patches all ajax calls which is quite bad since we don't do any ajax call by webcomponent since project limitations. I know that it's recommended to disable zone.js in…
VladosJS
  • 1,210
  • 8
  • 20
2
votes
2 answers

Angular - Getting out of Zone.JS for specific callbacks

First and foremost, I'm well aware of zone.runOutsideAngular(callback), documented here . What this method does is running the callback in a different zone than the Angular one. I need to attach a very quick callback to document's mousemove event…
Alberto Chiesa
  • 7,022
  • 2
  • 26
  • 53
2
votes
1 answer

2019s way of accessing navigator.mediaDevices.getUserMedia()

I am currently developing an angular7-app, created it the standard way through CLI and started coding. Now I would like to record some audio which is no difficult thing in modern browsers. I am using the built-in browser functionalities of…
Nico
  • 336
  • 3
  • 19
2
votes
0 answers

Polyfill conflict when Embedding a react widget to a Angular 4 site

I have a embeddable widget written using react and bundle to a single js file using webpack 4.29.3 and babel 7. Everything works fine in webpack-dev-server and production by just inserting
Hansika Weerasena
  • 3,046
  • 1
  • 13
  • 22
2
votes
1 answer

Profiler Flame Chart in Angular not showing my functions

This is what my profiler is showing for an Angular 7 app, built with angular-cli. Every function call is bundled under zone.js, and I cannot get useful information on what runs and for how long. The app is running with: ng serve, and I think is in…
RaidenF
  • 3,411
  • 4
  • 26
  • 42
2
votes
0 answers

after upgrading my angular application I have got an issue that is a little strange. Associated with RouterScroller

My application was working with angular5.0 and with material and all was working fine. I was also using the lazy loading(just if something will change that) and now I have done my upgrade with help of this page https://update.angular.io/. After that…
2
votes
0 answers

Angular Hybrid performance issues in AngularJS Part - Mousemove causes 100% CPU Load

TLDR Move mouse over Angular Components - everything is fine! Move mouse over AngularJS Components - Very high CPU Load, performance issues, why? We have an Angular Hybrid Application. The used Versions are: Angular: 7.1.3 AngularJS:…
Michael B
  • 1,660
  • 3
  • 28
  • 59
2
votes
0 answers

ERROR TypeError: (intermediate value).switchMap is not a function at new AngularFireAuth

My package.json "@angular/cdk": "^5.2.5", "@angular/common": "^6.1.9", "@angular/compiler": "^6.1.9", "@angular/core": "^6.1.9", "@angular/forms": "^6.1.9", "@angular/http": "^6.1.9", "@angular/material": "^5.2.5", "@angular/platform-browser":…
cano
  • 21
  • 4
2
votes
0 answers

Angular 6 cache.addAll() not working with zonejs

I'm trying to add files to the Cache storage in an angular 6 cli project but keep getting errors because of zonejs and I can't find out why. The code below works fine if I run in in a typescript project with no other code. The files are added to the…
2
votes
0 answers

How Zone.js runGuarded working behind the scene with Angular4

I'm using Zone.js with a project to handle async functionalities, I'm reading the source code and how they related, but still new to understand how all functions likes runGuarded help me to handle async stuffs, anybody using Zone.js before…
Alireza
  • 100,211
  • 27
  • 269
  • 172
2
votes
2 answers

ZoneAwarePromise has been overwritten on Meteor

On Meteor 1.4.1.1 since I've updated to the latest Angular 2.0.1 release I struggle against this error: Zone.js has detected that ZoneAwarePromise (window|global).Promise has been overwritten I've tried meteor update and meteor reset but the error…
1 2 3
8 9