ionic react android won't run after following the steps - javascript

After starting an ionic react app and not changing the default code, which runs without an error on the web,
I tried the steps on Capacitor. and everything went okay and I got my app built, until I tried running it on android studio and I got the following errors:
Object.assign is not a function.
Array.from is not a function.
and my app just opened a white screen.
After I searched I discovered these are codes for ES6 so how do I solve it!

Related

VueJS / Apache Cordova application throwing errors inside of the chunk-vendor disptie VueJS application working fine

I have a VueJS project with a "fakeDB.js" file that drives the database via local storage (browser) during development. After testing this locally, everything is working and I can navigate to pages perfectly fine.
I'm now running npm run build to get the js/css files to place into a Cordova application for an Android application. After copying these files into the application and switching the VueJS application to use the SQLITE3 inside Cordova I experience issues.
My login pages work perfectly fine, I can view the dashboard with all the jobs inside it but if I click into a job it throws a white screen.
After hooking up adb debug, all I can see is an error in the chunk-vendor file that npm run build created which, AFAIK, contains the vendor packaging.
The error message I get is:
"TypeError: Cannot read property 'substr' of undefined", source: file:///android_asset/www/js/chunk-vendors.f024a0c1.js (7)
Of course, this file is obfuscated and minified so Line 7 is VueJS 2.6.12.
I have inherited this application with no previous experience so I'm taking an educated guess around "chunk-vendor" that I perhaps need to upgrade the depedencies surrounding this application to get past this issue but I'm unsure how I can debug this further inside of android studio.
How can I go about solving this issue? Is there a way to upgrade safely inside of npm?
Update: I have ran a npm update and I'm now on VueJS 2.7.10 but still getting the same issue

Why does React Native app crash when clicking on debug in Android emulator?

React Native app shows error when clicked on debug in Android emulator
Attempt to invoke interface method java.lang.String com.facebook.react.bridge.Cat alystInstance.getSourceURL('on a null object reference
below are error screenshots
Emulator screenshot:
Debugger screenshot:
When clicked on reload app crashes and lost connection to debugger.
Tried uninstalling and reinstalling apk in emulator and cd android ./gradlew clean.
Still same error.
I have faced same issue and it was due to the 'react-native-reanimated' package (It's mentioned in their documentation that remote debugging is no longer possible for react-native-reanimated : React Native Reanimated Known problems and limitations) and the solution is to use flipper to debug : Debugging React Native apps with Flipper

Getting an error when running react native app

I am encountering an issue when try to run my app on my local machine. When I run react-native run-android I am confronted with this error and I am not sure what I can do. I have made sure that I have full access rights to all files etc but nothing seems to work. This error stops me from loading my app onto my AVD:
Please help me!
Did you follow the Android setup instructions from React Native? Have you tried to delete the directory in the error message? Try those first and try again 🤓

Error running a react-native Android app - BatchedBridge

I am trying to bring-up our react-native app on Android. It is working fine on iOS. When I try to run the debug build, react-native throws the below error:
TypeError: undefined is not an object
(evaluating 'require('BatchedBridge').flushedQueue')
("line":1 in generated bundle)
How do I figure out what is causing the error?
Any advice is greatly appreciated. Saw online that sometimes such an error message can contain the column, but in my case there is only the line number. I am running react-native 0.17.
Had a messed-up path, in one place. Fixing that alleviated the problem.
It seems that react-native Android is ready for business, as much as anything...
It would be nice to have better diagnostics, and perhaps integrate react-native Android with an IDE to the point where the IDE [plugin] would be able to make inclusion of Android modules into config more seamless. Xcode linking configuration is also not perfect, but it is slightly easier on developers.
Since react-native is a young project, there is no reason to not expect such tools in the future, I hope.

Cannot read property 'Constants' of underfind

I have tried to integrates react-native with an existing android app.I followed Official guide.When everything was done. I started the development server then run my android app.I got the following error.
In genymotion
In chrome console.
How to solve this problem.Thanks for any suggestion.

Categories

Resources