Skip to content

NativeScript encountered a fatal error: Uncaught TypeError: Class constructor Observable cannot be invoked without 'new' #210

@faisalansari20

Description

@faisalansari20

I have install this library in nativescript using angular flavour and I am facing below error only on IOS.

***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught TypeError: Class constructor Observable cannot be invoked without 'new'
at
SharedNotificationDelegateCommon(file: node_modules/nativescript-shared-notification-delegate/shared-notification-delegate.common.js:7:0)
at SharedNotificationDelegateImpl(file: node_modules/nativescript-shared-notification-delegate/shared-notification-delegate.ios.js:23:0)
at ../node_modules/nativescript-shared-notification-delegate/shared-notification-delegate.js(file: node_modules/nativescript-shared-notification-delegate/shared-notification-delegate.ios.js:181:0)
at webpack_require(file: src/webpack/bootstrap:816:0)
at fn(file: src/webpack/bootstrap:120:0)
at ../node_modules/nativescript-local-notifications/local-notifications.js(file: node_modules/nativescript-local-notifications/local-notifications.ios.js:3:50)
at webpack_require(file: src/webpack/bootstrap:816:0)
at fn(file: src/webpack/bootstrap:120:0)
at ./app/core/services/pushnotification.service.ts(file: src/app/core/services/pushnotification.service.ts:1:0)
at webpack_require(file: src/webpack/bootstrap:816:0)
at fn(file: src/webpack/bootstrap:120:0)
at ./app/app.component.ts(file: src/app/app.component.ts:1:0)
at webpack_require(file: src/webpack/bootstrap:816:0)
at fn(file: src/webpack/bootstrap:120:0)
at .<…>`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions