Skip to content

Cannot run in Angular 16.1.2 - ERROR ReferenceError: queueMicrotask is not defined #118

Closed
@JWiseCoder

Description

@JWiseCoder

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:

"dependencies": {
    "@angular/animations": "~16.1.0",
    "@angular/common": "~16.1.0",
    "@angular/compiler": "~16.1.0",
    "@angular/core": "~16.1.0",
    "@angular/forms": "~16.1.0",
    "@angular/platform-browser": "~16.1.0",
    "@angular/platform-browser-dynamic": "~16.1.0",
    "@angular/router": "~16.1.0",
    "@nativescript/angular": "^15.0.0",
    "@nativescript/core": "~8.5.0",
    "@nativescript/theme": "~3.0.2",
    "rxjs": "~7.6.0",
    "zone.js": "~0.13.0"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~16.1.0",
    "@angular/compiler-cli": "~16.1.0",
    "@nativescript/ios": "8.5.2",
    "@nativescript/types": "~8.5.0",
    "@nativescript/webpack": "~5.0.14",
    "@ngtools/webpack": "~16.1.0",
    "typescript": "~4.9.3"
  }

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions