Getting an error when running react native app - javascript

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 🤓

Related

Expo Android build not working ( Failed to retrieve Firebase Instance Id)

I'm trying for 2 days to resolve the following problem:
Project works in Expo GO but the APK bundle from Expo is not starting on physical device and throwing errors.
When I put the app on appetize.io most common error is:
Failed to retrieve Firebase Instance Id
The thing is that I don't have Firebase installed at all in my project...
I've tried multiple times for clearing the cache reinstalling the node modules nothing appear to happens...
Can someone give me direction how I can fix this?
Link to full TXT file from debugger log: https://textdoc.co/5oHKDvldXmaPLUGO

Unable to resolve module react-native-reanimated/src/core/AnimatedEvent

This is my first post so my apologies if I leave out some important details that will make it easier to answer the question.
As I was working on my project for my app development class I stumbled upon an error that I cannot fix/figure out what's causing it. I did not mess with any of the node modules and the app was working perfectly fine before the error message.
Image of error message
I have attempted to clear the cache, re install and update some of the packages that I needed for this project, and looked for any errors within the code of my project. No luck after 2 hours of attempts.
Are there any recommendations of that I need to do to fix this? Should I start the project from scratch again?
Thank you all!
Have you tried cd ios && pod install? Also, upload your package.json file
As the error suggests react-navigation-drawer is trying to find a component which doesn't exist. Implying your versions are out of sync.
I was able resolve this issue by upgrading react-navigation#4.0.0.

react app published on github pages shows white screen

I have a React.js app, I built this simple meme generator app trying to learn web development (pretty new to the stuff) and am trying to host it using Github pages. I followed all the steps like installing the gh-pages with node and adding the url to the packages.json and adding the extra 2 lines of code for predeploy and deploy. I have the source for the github pages set to gh-pages. i get no errors when I run the command "npm run deploy" in terminal. But when I click the link I get a white screen. The console gives the error "Loading failed for the with source “https://z0onic.github.io/static/js/2.0b197680.chunk.js”. which is the first js file in the build directory. I searched pretty heavily and found other people who had a similar white screen issue but none of the answers helped. I have triple checked against these answers. Based on the error I'm getting I think its a build error but I don't know how to fix it or figure out exactly what is going wrong.
The github repository is at https://github.com/z0onic/meme-page and the link to the blank page that should be the hosted app is https://z0onic.github.io/meme-page/
when hosting locally through vs code with "npm start" command everything works fine.
Any help is appreciated I hope I'm not overlooking something silly but like I said I'm new to coding and still learning.
set the homepage in package.json to "https://<username>.github.io/<reponame>/" of course substituting things in <>

Expo eject from managed to bare not working

I created an app with expo using the managed workflow, but I now want to eject it so I can build an IPA for IOS. After running expo eject and following the prompts for pod install, when I try to build the app and view it on the simulator in xCode, I get stuck on the splash screen which results in a very long list of errors (attached the relevant looking one below).
Have I missed a step here? I tried looking on the expo documentation but it’s very lacking in using the eject command. Is there a step or something I’m meant to modify after the eject has occurred?
Error: Exception NSException * "expo-updates must be configured with a valid update URL or scope key."
So I resolved this by following these steps after I ejected: https://docs.expo.io/bare/installing-updates/
And also adding the below to the Expo.plist file in the MyApp/Supporting folder with the below:
<key>EXUpdatesURL</key>
<string>https://example.com</string>

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.

Categories

Resources