Skip to content

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

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

Open
faisalansari20 opened this issue Oct 13, 2021 · 2 comments

Comments

@faisalansari20
Copy link

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

@timobech
Copy link

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

@insytes
Copy link

insytes commented Apr 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants