angular: angular2-polyfills.min.js throws deprecation warning since beta.3

While loading, I am getting below error in Firefox browser console:

DEPRECATION WARNING: 'enqueueTask' is no longer supported and will be removed in next major release. Use addTask/addRepeatingTask/addMicroTask

DEPRECATION WARNING: 'dequeueTask' is no longer supported and will be removed in next major release. Use removeTask/removeRepeatingTask/removeMicroTask

Please get rid of it.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

The fix will come when the Angular team and/or Zone team take care of whatever issues standing in the way see some comments above for details.

But as a interim workaround, just open the polyfills source file, find the line of code that emits those warnings, and remove. I did this when I needed to do a demonstration of a bunch of unrelated Angular 2 features, and didn’t want the limited space on the screen I was projecting in front of a bunch of people to be wasted on these irritating deprecation warnings.

Deprecation is what happens during beta, so as not to make breaking changes wherever possible.

On Mon, Feb 15, 2016 at 7:20 PM Kyle Cordes notifications@github.com wrote:

I also request that this ultra-current framework (itself in beta, dependencies in beta, etc.) move away from older deprecated APIs in their warnings, if feasible to do so. (I am prepping for a series of Angular 2 classes, and don’t look forward to explaining this console message… every… time…)

— Reply to this email directly or view it on GitHub https://github.com/angular/angular/issues/7007#issuecomment-184495975.