-
-
Notifications
You must be signed in to change notification settings - Fork 14
Cannot run in Angular 16.1.2 - ERROR ReferenceError: queueMicrotask is not defined #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am seeing the same problem with @angular/* 16.1.2 ERROR ReferenceError: queueMicrotask is not defined |
A quick fix is doing:
In the polyfills.ts file |
published with @nativescript/[email protected] - a simple clean of project and re-run should pull it down since it's a transient dep on @nativescript/angular |
@NathanWalker : Works as expected, thanks! |
Also works for me. Thanks! |
I solved the problem by adding the following line in polyfill.js import "core-js/modules/web.queue-microtask" actually core-js providered a wide range of features to fill the gap between newer ECMAScript syntax, class, functions etc and older brower runtime envs. |
I noticed this in our main app, so I tested it by creating a new NativeScript/Angular project and updating the versions in package.json to:
This installs and builds fine, but when it runs I get the following error (no stack trace, no exception breakpoint):
ERROR ReferenceError: queueMicrotask is not defined
It does not do this if I force it to angular 16.1.1
I can't find where this is happening, and I don't think I've seen anyone else having this particular problem. Any suggestions?
The text was updated successfully, but these errors were encountered: