Not able to view PDF on mobile using pdf js - ionic-framework

I can view a PDF in the browser using ionic serve, but I am not able to view the PDF on a device. I am testing on Android.
This is the error I'm getting:
polyfills.js:3 Fetch API cannot load file:///android_asset/www/assets/imgs/11.pdf. URL scheme “file” is not supported.
(anonymous) # polyfills.js:3
vendor.js:1 ERROR Error: Uncaught (in promise): TypeError: Failed to fetch
TypeError: Failed to fetch
at polyfills.js:3
at Generator._invoke (0.js:1)
at Generator.t.(anonymous function) [as next]
(file:///android_asset/www/build/0.js:1:278295)
vendor.js:1 ERROR Error: Uncaught (in promise): DataCloneError: Failed to execute ‘postMessage’ on ‘Worker’: TypeError: Failed to fetch could not be cloned.
Error: Failed to execute ‘postMessage’ on ‘Worker’: TypeError: Failed to fetch could not be cloned.
at o.postMessage (0.js:1)
Thanks in advance.

Related

Capacitor Share ERROR Error: Uncaught (in promise): TypeError: Failed to execute 'share' on 'Navigator': Invalid URL TypeError: Failed to execute

I'm working with Ionic 6 and Capacitor, and i'm using the default Capacitor Share API, but when using it i get this error.
ERROR Error: Uncaught (in promise): TypeError: Failed to execute 'share' on 'Navigator': Invalid URL
TypeError: Failed to execute 'share' on 'Navigator': Invalid URL
Does anyone know if this is an API bug or a uncompatibility issue with my browser?
I'm on Microsoft Edge; Version 109.0.1518.61.

flutter web phone auth: TypeError: Cannot read properties of undefined (reading 'settings')

I am trying to add firebase phone auth OTP verification in my flutter web app.
But getting this error: TypeError: Cannot read properties of undefined (reading 'settings').
Please help in resolving this error.

Error When Running Flutter Web in Debug and Release

I am trying to run Flutter Web, but I am getting the following error when running in release mode:
Uncaught TypeError: Cannot read properties of null (reading 'toString')
at Object.bm (main.dart.js:442)
at Object.aD8 (main.dart.js:75)
at main.dart.js:7583
at aeF.a (main.dart.js:5177)
at aeF.$2 (main.dart.js:32691)
at Object.F (main.dart.js:5163)
at Object.tA (main.dart.js:7601)
at Object.aDT (main.dart.js:7578)
at main.dart.js:20403
at aeF.a (main.dart.js:5177)
and the following error when running in debug mode:
Uncaught TypeError: Cannot read properties of null (reading 'append')
at main.dart.js:65
The same thing happens when running the app in debug mode.
The app works when running on mobile.

ERROR Error: Uncaught (in promise): EmptyError: no elements in sequence vendor-es2015.js:43770

I'm developing my Ionic/Angular app, and I'm running into the following error when I try to log in through back-end login api. Any ideas as to why? I googled it, but I could find any relevant info, the issue still remains. What causes this error?
vendor-es2015.js:43770 ERROR Error: Uncaught (in promise): EmptyError: no elements in sequence
at resolvePromise (polyfills-es2015.js:4147)
at resolvePromise (polyfills-es2015.js:4104)
at polyfills-es2015.js:4208
at ZoneDelegate.invokeTask (polyfills-es2015.js:3741)
at Object.onInvokeTask (vendor-es2015.js:73623)
at ZoneDelegate.invokeTask (polyfills-es2015.js:3740)
at Zone.runTask (polyfills-es2015.js:3518)
at drainMicroTaskQueue (polyfills-es2015.js:3909)
at ZoneTask.invokeTask [as invoke] (polyfills-es2015.js:3819)
at invokeTask (polyfills-es2015.js:4953)
Finally, I found the cause of the issue. It's due to an error code returned by a back-end api call. After getting rid of the error code, the login functions well.

ERROR TypeError: Object(...) is not a function at WebIntent.get [as ACTION_VIEW]

I am trying to integrate Google pay into my app using web intent plugin. After I completed the install I got the following error:
ERROR TypeError: Object(...) is not a function at WebIntent.get [as
ACTION_VIEW]
Click here for my error