nativescript-local-notifications icon indicating copy to clipboard operation
nativescript-local-notifications copied to clipboard

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

Open faisalansari20 opened this issue 3 years ago • 2 comments

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 .<…>`

faisalansari20 avatar Oct 13 '21 08:10 faisalansari20

i face the same issue, do we have some updates on it ?

timobech avatar Nov 12 '21 17:11 timobech

@faisalansari20 @timobech I recommend you switching to the @nativescript/local-notifications package as outlined in the project readme.

insytes avatar Apr 11 '23 21:04 insytes